Skip to content

Commit f75fe70

Browse files
committed
NRL-1595 pull account id from env secrets rather than variables
1 parent aba344b commit f75fe70

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/deploy-account-wide-infra.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,10 @@ jobs:
8484
- name: Terraform Plan
8585
env:
8686
ACCOUNT_NAME: ${{ vars.ACCOUNT_NAME }}
87+
AWS_ACCOUNT_ID: ${{ secrets.AWS_ACCOUNT_ID }}
8788
run: |
8889
terraform -chdir=terraform/account-wide-infrastructure/${ACCOUNT_NAME} plan \
89-
-var 'assume_account=AWS_ACCOUNT_ID' \
90+
-var 'assume_account=${AWS_ACCOUNT_ID}' \
9091
-var 'assume_role=terraform'
9192
-out tfplan
9293
@@ -143,7 +144,7 @@ jobs:
143144
144145
# - name: Terraform Apply
145146
# env:
146-
# AWS_ACCOUNT_ID: ${{ vars.AWS_ACCOUNT_ID }}
147+
# AWS_ACCOUNT_ID: ${{ secrets.AWS_ACCOUNT_ID }}
147148
# run: |
148149
# terraform -chdir=terraform/account-wide-infrastructure apply tfplan \
149150
# -var 'assume_account=AWS_ACCOUNT_ID' \

0 commit comments

Comments
 (0)