Skip to content

Commit

Permalink
cd: debug
Browse files Browse the repository at this point in the history
  • Loading branch information
brunograna committed May 23, 2024
1 parent 546cde9 commit 2d9313d
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@ jobs:
terraform:
runs-on: ubuntu-latest

env:
AWS_REGION: ${{ secrets.AWS_REGION }}
TERRAFORM_S3_STATEFILE_BUCKET: ${{ secrets.TERRAFORM_S3_STATEFILE_BUCKET }}
TERRAFORM_DYNAMODB_LOCK_TABLE: ${{ secrets.TERRAFORM_DYNAMODB_LOCK_TABLE }}

defaults:
run:
shell: bash
Expand All @@ -38,10 +33,10 @@ jobs:
- name: Terraform Init
run: |
cd infra && terraform init \
-backend-config="bucket=${{ env.S3_BUCKET }}" \
-backend-config="bucket=${{ secrets.TERRAFORM_S3_STATEFILE_BUCKET }}" \
-backend-config="key=${{ github.event.repository.name }}" \
-backend-config="region=${{ env.AWS_REGION }}" \
-backend-config="dynamodb_table=${{ env.DYNAMODB_TABLE }}"
-backend-config="dynamodb_table=${{ secrets.TERRAFORM_DYNAMODB_LOCK_TABLE }}"
- name: Terraform Validate
run: terraform validate
Expand Down

0 comments on commit 2d9313d

Please sign in to comment.