Skip to content

Commit 13c7f86

Browse files
Assume AWS role for CDAP action credentials.
1 parent d3fc144 commit 13c7f86

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/release-and-deploy-bfd.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,15 @@ jobs:
4141
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
4242
with:
4343
node-version: 24.x
44+
45+
- name: Assume role to AWS
46+
uses: aws-actions/configure-aws-credentials@ec61189d14ec14c8efccab744f656cffd0e33f37 # v6.1.0
47+
env:
48+
AWS_REGION: ${{ github.event.inputs.aws-region || 'us-east-1' }}
49+
with:
50+
role-to-assume: arn:aws:iam::${{ github.ref_name =='main' && secrets.PROD_ACCOUNT || secrets.NON_PROD_ACCOUNT }}:role/delegatedadmin/developer/${{ github.ref_name =='main' && 'cdap-prod' || 'cdap-test' }}-github-actions
51+
aws-region: ${{ env.AWS_REGION }}
52+
4453
- name: Load Slack webhook
4554
uses: cmsgov/cdap/actions/aws-params-env-action@main
4655
with:

0 commit comments

Comments
 (0)