Skip to content

Commit

Permalink
Add Account ID.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelconnor00 committed Feb 28, 2024
1 parent 7274cf6 commit 2b55ad7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/diff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ jobs:
with:
role-to-assume: ${{vars.GHA_AWS_DEPLOY_ROLE}}
aws-region: eu-west-2
-
name: Get AWS Account Id
id: aws-sts
run: echo "acct_id=$(aws sts get-caller-identity --query 'Account')" >> $GITHUB_OUTPUT
-
name: Checkout repo
uses: actions/checkout@v2
Expand All @@ -28,4 +32,6 @@ jobs:
run: cd iac/ && npm install
-
name: CDK synth
env:
CDK_DEFAULT_ACCOUNT: ${{ steps.aws-sts.outputs.acct_id }}
run: cd iac/ && node_modules/aws-cdk/bin/cdk diff

0 comments on commit 2b55ad7

Please sign in to comment.