Skip to content

Commit

Permalink
Destroy pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
jaezeu committed Jun 27, 2024
1 parent d8a408c commit a4f0cdd
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/destroy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
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

0 comments on commit a4f0cdd

Please sign in to comment.