Skip to content

Terraform Destroy

Terraform Destroy #1

Workflow file for this run

name: Terraform Destroy
on: workflow_dispatch
env:
AWS_REGION: ap-southeast-1
jobs:
Destroy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ env.AWS_REGION }}
- name: Setup Terraform
uses: hashicorp/setup-terraform@v2
with:
terraform_wrapper: false
- name: Terraform Init
run: terraform init
- name: Terraform Destroy
run: terraform destroy -auto-approve