Skip to content

🧨 Terraform Database Destroy #7

🧨 Terraform Database Destroy

🧨 Terraform Database Destroy #7

Workflow file for this run

name: '🧨 Terraform Database Destroy'
on:
workflow_dispatch:
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
TF_VAR_AWS_DB_USERNAME: ${{ secrets.AWS_DB_USERNAME }}
TF_VAR_AWS_DB_PASSWORD: ${{ secrets.AWS_DB_PASSWORD }}
jobs:
terraform:
name: 'Destroy'
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Run terraform init
run: terraform init
- name: Run terraform destroy
run: terraform destroy --auto-approve