File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -36,23 +36,21 @@ jobs:
36
36
with :
37
37
role-to-assume : arn:aws:iam::179916804929:role/BuildRun-GithubActions-Role # change to reflect your IAM role’s ARN
38
38
role-session-name : GitHub_to_AWS_via_FederatedOIDC
39
- aws-region : ${{ vars .AWS_REGION }}
39
+ aws-region : ${{ env .AWS_REGION }}
40
40
41
41
- name : Read destroy configuration
42
42
id : read-destroy-config
43
43
run : |
44
- DESTROY_DEV="$(jq -r '.dev' ./infra/destroy_config.json)"
45
44
DESTROY_PROD="$(jq -r '.prod' ./infra/destroy_config.json)"
46
- echo "destroy_dev=$(echo $DESTROY_DEV)" >> $GITHUB_OUTPUT
47
45
echo "destroy_prod=$(echo $DESTROY_PROD)" >> $GITHUB_OUTPUT
48
46
49
47
- name : Terraform Init
50
48
run : |
51
49
cd infra && terraform init \
52
- -backend-config="bucket=${{ vars .TERRAFORM_S3_STATEFILE_BUCKET }}" \
50
+ -backend-config="bucket=${{ env .TERRAFORM_S3_STATEFILE_BUCKET }}" \
53
51
-backend-config="key=${{ github.event.repository.name }}" \
54
52
-backend-config="region=${{ env.AWS_REGION }}" \
55
- -backend-config="dynamodb_table=${{ vars .TERRAFORM_DYNAMODB_LOCK_TABLE }}"
53
+ -backend-config="dynamodb_table=${{ env .TERRAFORM_DYNAMODB_LOCK_TABLE }}"
56
54
57
55
- name : Terraform Validate
58
56
run : terraform validate
You can’t perform that action at this time.
0 commit comments