Skip to content

Manual AWS Teardown #12

Manual AWS Teardown

Manual AWS Teardown #12

Workflow file for this run

name: Manual AWS Teardown
on:
workflow_dispatch:
inputs:
awsCredentials:
description: 'AWS Credentials'
required: true
auth0Secret:
description: 'Auth0 Secret'
required: true
auth0IssuerBaseUrl:
description: 'Auth0 Issuer Base URL'
required: true
auth0ClientId:
description: 'Auth0 Client ID'
required: true
auth0ClientSecret:
description: 'Auth0 Client Secret'
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 \
-var "auth0_secret=${{ github.event.inputs.auth0Secret }}" \
-var "auth0_issuer_base_url=${{ github.event.inputs.auth0IssuerBaseUrl }}" \
-var "auth0_client_id=${{ github.event.inputs.auth0ClientId }}" \
-var "auth0_client_secret=${{ github.event.inputs.auth0ClientSecret }}"