Skip to content

Prod deploy identity: CI role, EKS access entry, app EFS access point (Terraform half of #556) #929

Closed

Description

@athvin

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

  1. added
    mvp
    on Nov 8, 2026
  2. self-assigned this
    on Nov 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

mvp

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions