File tree 1 file changed +2
-7
lines changed
1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change 10
10
terraform :
11
11
runs-on : ubuntu-latest
12
12
13
- env :
14
- AWS_REGION : ${{ secrets.AWS_REGION }}
15
- TERRAFORM_S3_STATEFILE_BUCKET : ${{ secrets.TERRAFORM_S3_STATEFILE_BUCKET }}
16
- TERRAFORM_DYNAMODB_LOCK_TABLE : ${{ secrets.TERRAFORM_DYNAMODB_LOCK_TABLE }}
17
-
18
13
defaults :
19
14
run :
20
15
shell : bash
@@ -38,10 +33,10 @@ jobs:
38
33
- name : Terraform Init
39
34
run : |
40
35
cd infra && terraform init \
41
- -backend-config="bucket=${{ env.S3_BUCKET }}" \
36
+ -backend-config="bucket=${{ secrets.TERRAFORM_S3_STATEFILE_BUCKET }}" \
42
37
-backend-config="key=${{ github.event.repository.name }}" \
43
38
-backend-config="region=${{ env.AWS_REGION }}" \
44
- -backend-config="dynamodb_table=${{ env.DYNAMODB_TABLE }}"
39
+ -backend-config="dynamodb_table=${{ secrets.TERRAFORM_DYNAMODB_LOCK_TABLE }}"
45
40
46
41
- name : Terraform Validate
47
42
run : terraform validate
You can’t perform that action at this time.
0 commit comments