Terraform: scope hosted CI writes to the exact indexer mapping
Change
Add an opt-in hosted CI apply mode that retains existing adoption state access and allows only lambda:UpdateEventSourceMapping on the existing indexer mapping. The resource binding requires a private literal mapping UUID. Adoption stays the default. The plan role and existing full mode retain their permissions.
The exact mapping binding limits the resource. The protected saved-plan gate limits the mutable field and the old and new values in #636 and its rollback follow-up.
Verification
Terraform and OpenTofu each passed all 12 mocked tests. The pin is required for mapping scope and rejected in other modes. All 26 policy gate tests passed. The Terraform mock emits one apply-policy update, and the gate accepts it only with the digest-pinned statement. Tests use synthetic values. The Terraform docs check and diff check passed.
Review and rollout
Hold for exact-head D5 static PASS, green CI, and Infra Ops review. To activate this permission later, Infra Ops needs the verified private binding in the existing protected input path and a separately approved bootstrap saved plan that adds only the digest-pinned UpdateIndexerMapping statement to the existing apply role policy. There is no change to deployed IAM from landing these source files. The prior zero-diff adoption and writer handoff and the protected rollback remain separate production evidence.