afi-backup-monitor/terraform
Adam Moussa c54997fe5c
feat(iam): import hcptf roles into app Terraform (PLAT-146) (#68)
* feat(iam): import hcptf roles into app Terraform (PLAT-146)

Move the existing prod plan/apply pair into this repo. First apply uses the bootstrap window because DenySelfMutation blocks self-detach of seahaven-hcptf-iam-management.

* fix(iam): let the plan role refresh imported hcptf roles (PLAT-146)

The scoped plan-refresh sidecar only covered tf-managed/afi-*. After import, plans need GetRole on the hcptf pair in this workspace.

* style(iam): terraform fmt hcp_iam.tf (PLAT-146)

CI terraform fmt -check failed on alignment in the apply-services document.

* fix(iam): tighten plan-refresh and scoped boundary pin (PLAT-146)

Plan-refresh copied lambda:* from apply, so a plan session could mutate afi functions. Drop the unsuffixed org-wide Lambda boundary so scoped apply cannot retarget exec roles onto that ceiling.

* fix(iam): replace deprecated managed_policy_arns (PLAT-146)

Keep exclusive attachment control so the apply role stays empty and the plan role keeps ViewOnlyAccess.

* ci(iam): retrigger HCP commit status (PLAT-146)
2026-09-02 18:32:07 +00:00
..
.terraform.lock.hcl chore(deps): bump hashicorp/aws (#59) 2026-08-18 20:14:03 +00:00
artifacts.tf fix(iac): ship lambda zips via s3 for hcp plan/apply split 2026-08-05 12:18:30 -04:00
events.tf feat(iac): add hcp terraform config for prod migration 2026-08-05 12:01:05 -04:00
hcp_iam.tf feat(iam): import hcptf roles into app Terraform (PLAT-146) (#68) 2026-09-02 18:32:07 +00:00
iam.tf feat(iac): add hcp terraform config for prod migration 2026-08-05 12:01:05 -04:00
lambda.tf fix(iac): ship lambda zips via s3 for hcp plan/apply split 2026-08-05 12:18:30 -04:00
locals.tf fix(iam): attach per-workload lambda permissions boundary (PLAT-52) (#60) 2026-08-20 16:01:48 -04:00
outputs.tf feat(iac): add hcp terraform config for prod migration 2026-08-05 12:01:05 -04:00
providers.tf feat(iac): add hcp terraform config for prod migration 2026-08-05 12:01:05 -04:00
terraform.tfvars.example feat(iac): add hcp terraform config for prod migration 2026-08-05 12:01:05 -04:00
variables.tf feat(iac): add hcp terraform config for prod migration 2026-08-05 12:01:05 -04:00
versions.tf chore(deps): bump hashicorp/aws from 5.100.0 to 6.57.1 in /terraform (#51) 2026-08-05 16:19:02 -04:00