Skip to content

Commit

Permalink
fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
FaithKovi committed Jul 31, 2024
1 parent 94d9d45 commit c971708
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,9 @@ jobs:
run: python3 empty_bucket.py

- name: Destroy Terraform
working-directory: ./terraform
if: ${{ failure() }}
run: |
working-directory: ./terraform
terraform destroy -var-file=variables.tfvars -auto-approve
run: terraform destroy -var-file=variables.tfvars -auto-approve
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Expand Down
9 changes: 9 additions & 0 deletions terraform/backend.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
terraform {
backend "s3" {
bucket = "terraform-state-bucket1232444231"
key = "./terraform.tfstate"
region = "us-east-1"
dynamodb_table = "resume-terraform-locks"
encrypt = true
}
}

0 comments on commit c971708

Please sign in to comment.