Skip to content

Commit 801304a

Browse files
committed
Use different AWS account for Prod environment
1 parent 067d090 commit 801304a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/docker-a3s.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ jobs:
7474
- name: Configure AWS credentials
7575
uses: aws-actions/configure-aws-credentials@v4
7676
with:
77-
role-to-assume: arn:aws:iam::011528275708:role/${{ vars.CICD_ROLE }}
77+
# Dev: 011528275708, Prod: 718197818630
78+
role-to-assume: arn:aws:iam::${{ inputs.environment == 'Prod' && '718197818630' || '011528275708' }}:role/${{ vars.CICD_ROLE }}
7879
aws-region: eu-central-1
7980

8081
- name: Login to Amazon ECR

0 commit comments

Comments
 (0)