Skip to content

Commit

Permalink
Move account ID to secrets.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelconnor00 committed Feb 28, 2024
1 parent 9de745d commit 457576a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/diff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ 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 @@ -33,6 +29,6 @@ jobs:
-
name: CDK synth
env:
CDK_DEFAULT_ACCOUNT: ${{ steps.aws-sts.outputs.acct_id }}
CDK_DEFAULT_ACCOUNT: ${{ secrets.CDK_DEPLOY_ACCOUNT }}
CDK_DEFAULT_REGION: ${{ env.AWS_REGION }}
run: cd iac/ && node_modules/aws-cdk/bin/cdk diff

0 comments on commit 457576a

Please sign in to comment.