Delete .github/workflows/terraform-format.yml #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Terraform Destroy | |
on: | |
workflow_dispatch: | |
workflow_call: | |
push: | |
branches: | |
- main | |
env: | |
TF_LOG: INFO | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
BUCKET_TF_STATE: ${{ secrets.BUCKET_TF_STATE }} | |
jobs: | |
terraform_destroy: | |
name: Destroy infra | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: terraform | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Terraform init and destroy | |
run: terraform init && terraform destroy --auto-approve |