Manual AWS Teardown #7
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: Manual AWS Teardown | |
on: | |
workflow_dispatch: | |
inputs: | |
awsCredentials: | |
description: 'AWS Credentials' | |
required: true | |
jobs: | |
teardown: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js 20.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20.x | |
- uses: levibostian/action-hide-sensitive-inputs@v1 | |
- name: Teardown to AWS | |
run: | | |
eval "${{ github.event.inputs.awsCredentials }}" | |
terraform init | |
terraform destroy -auto-approve |