File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
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 : sa-east-1
15
+ TERRAFORM_S3_STATEFILE_BUCKET : buildrun-sa-east-1-terraform-s3-statefile
16
+ TERRAFORM_DYNAMODB_LOCK_TABLE : buildrun-terraform-state-lock
17
+
13
18
defaults :
14
19
run :
15
20
shell : bash
@@ -26,10 +31,10 @@ jobs:
26
31
- name : Terraform Init
27
32
run : |
28
33
cd infra && terraform init \
29
- -backend-config="bucket=$TERRAFORM_S3_STATEFILE_BUCKET" \
34
+ -backend-config="bucket=${{ env. TERRAFORM_S3_STATEFILE_BUCKET }} " \
30
35
-backend-config="${{ github.event.repository.name }}" \
31
- -backend-config="region=$AWS_REGION" \
32
- -backend-config="dynamodb_table=$TERRAFORM_DYNAMODB_LOCK_TABLE"
36
+ -backend-config="region=${{ env. AWS_REGION }} " \
37
+ -backend-config="dynamodb_table=${{ env. TERRAFORM_DYNAMODB_LOCK_TABLE }} "
33
38
34
39
- name : Terraform Validate
35
40
run : terraform validate
You can’t perform that action at this time.
0 commit comments