Skip to content

Commit 2d9313d

Browse files
committed
cd: debug
1 parent 546cde9 commit 2d9313d

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

.github/workflows/terraform.yml

+2-7
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@ jobs:
1010
terraform:
1111
runs-on: ubuntu-latest
1212

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-
1813
defaults:
1914
run:
2015
shell: bash
@@ -38,10 +33,10 @@ jobs:
3833
- name: Terraform Init
3934
run: |
4035
cd infra && terraform init \
41-
-backend-config="bucket=${{ env.S3_BUCKET }}" \
36+
-backend-config="bucket=${{ secrets.TERRAFORM_S3_STATEFILE_BUCKET }}" \
4237
-backend-config="key=${{ github.event.repository.name }}" \
4338
-backend-config="region=${{ env.AWS_REGION }}" \
44-
-backend-config="dynamodb_table=${{ env.DYNAMODB_TABLE }}"
39+
-backend-config="dynamodb_table=${{ secrets.TERRAFORM_DYNAMODB_LOCK_TABLE }}"
4540
4641
- name: Terraform Validate
4742
run: terraform validate

0 commit comments

Comments
 (0)