OIDC + deploy action
AWS deploy 패턴은 인증에 OIDC, 그 다음 하나:
- ECS rolling deploy —
aws-actions/amazon-ecs-deploy-task-definition - EKS via kubectl —
aws-actions/configure-aws-credentials+aws eks update-kubeconfig+kubectl apply. - Lambda —
aws-actions/aws-lambda-deploy또는aws lambda update-function-code. - S3 / CloudFront 정적 —
aws s3 sync+aws cloudfront create-invalidation. - App Runner —
aws-actions/amazon-app-runner-deploy.
AWS 측 일회성 설정
token.actions.githubusercontent.com용 IAM Identity Provider.repo:my-org/my-repo:ref:refs/heads/main키로 trust policy 가진 IAM Role.- Role 의 permissions policy 가 특정 deploy action 허용 (예: 특정 service ARN 에
ecs:UpdateService).
설정 후, 모든 workflow run 은 새로운 scope 된 ~1 시간 credential 받음. 정적 key 없음.