You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Prod deploy identity: CI role, EKS access entry, app EFS access point (Terraform half of #556) #929
Sub-issue of #556, split so the identity exists in AWS before any workflow tries to use it — the same order dev used (envs/dev/ci-deploy.tf merged and applied before deploy.yml assumed the role). A single PR carrying both the role and the deploy leg would race on merge: deploy.yml fires within minutes (its images trigger completes fast when no image tree moved), while the infra.yml apply that creates the role takes longer — and a red deploy on main trains readers to ignore deploy failures, which the deploy.yml header calls out as the failure that costs signal.
Scope:
infra/terraform/envs/prod/ci-deploy.tf — er-ci-deploy-prod: GitHub OIDC trust pinned to refs/heads/main (mirroring er-ci-deploy-dev), eks:DescribeCluster on the prod cluster, scoped Secrets Manager read on er/prod/app/* (no Create/Delete — prod's §9 entries are Terraform-owned in secrets.tf), ECR digest reads, EFS describe (access-point discovery), ELBv2 describe (target-group-by-name discovery for the TargetGroupBinding).
infra/terraform/envs/prod/eks.tf — add the role to admin_principal_arns, the way dev does for ci_deploy.
infra/terraform/envs/prod/efs.tf — the /app access point (posix 1001:1001), which nothing creates today: prod has no dev_env.sh, and the one namespace's storage is Terraform's by the same argument secrets.tf makes. Verified live 2026-11-08: fs-05ee4143366be7722 has zero access points.
Acceptance: envs/prod applies from CI on merge; aws sts assume-role is not exercisable by hand (OIDC-only trust), so the live proof is the first deploy.yml prod run in #556 reaching update-kubeconfig and the cluster accepting the token.
Activity
chore(skills): regen footprint for the prod deploy identity (#929)
feat(infra): prod deploy identity — CI role, EKS access entry, /app E…