Skip to content

Delete .github/workflows/terraform-init.yml #14

Delete .github/workflows/terraform-init.yml

Delete .github/workflows/terraform-init.yml #14

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