From 8cd2756b42bff672e2de8a5897c582a631e6c7de Mon Sep 17 00:00:00 2001 From: LeoDiazL <116020815+LeoDiazL@users.noreply.github.com> Date: Fri, 24 Nov 2023 17:14:39 -0300 Subject: [PATCH] Add --- .github/workflows/v5-destroy.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/v5-destroy.yaml diff --git a/.github/workflows/v5-destroy.yaml b/.github/workflows/v5-destroy.yaml new file mode 100644 index 0000000..a604f53 --- /dev/null +++ b/.github/workflows/v5-destroy.yaml @@ -0,0 +1,20 @@ +name: v0.5-destroy +on: + workflow_dispatch: + inputs: + aws_resource_identifier: +jobs: + destroy: + runs-on: ubuntu-latest + steps: + - id: destroy + name: Destroy + uses: bitovi/github-actions-deploy-docker-to-ec2@v0.5-delete + with: + aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID_SANDBOX }} + aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY_SANDBOX }} + aws_default_region: us-east-1 + aws_resource_identifier: ${{ github.event.inputs.aws_resource_identifier }} + + stack_destroy: "true" + tf_state_bucket_destroy: true \ No newline at end of file