From f7cb401b1d89727f10cde35b54a75919bc025025 Mon Sep 17 00:00:00 2001 From: Kev Jimenez Date: Mon, 5 Feb 2024 04:12:19 +0000 Subject: [PATCH] edited destroy yaml --- .github/workflows/destroy.yml | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/.github/workflows/destroy.yml b/.github/workflows/destroy.yml index fb48809..acc8d3f 100644 --- a/.github/workflows/destroy.yml +++ b/.github/workflows/destroy.yml @@ -15,18 +15,8 @@ jobs: - name: Run ansible playbook for uninstallation run: ansible-playbook -i aws_ec2.yml destroyinf.yml - - name: Terraform init - run: terraform init - - - name: Create a tfvars file - run: | - echo "cf_email=\"${{ secrets.CF_EMAIL }}\"" > my_variables.tfvars - echo "cf_api=\"${{ secrets.CF_API }}\"" >> my_variables.tfvars - echo "zonecf_id=\"${{ secrets.ZONECF_ID }}\"" >> my_variables.tfvars - echo "pub_key=\"${{ secrets.PUB_KEY }}\"" >> my_variables.tfvars - # On push to "main", build or change infrastructure according to Terraform configuration files # Note: It is recommended to set up a required "strict" status check in your repository for "Terraform Cloud". See the documentation on "strict" required status checks for more information: https://help.github.com/en/github/administering-a-repository/types-of-required-status-checks - name: Terraform Destroy - run: terraform destroy -auto-approve -input=false -var-file=my_variables.tfvars + run: terraform destroy -auto-approve -input=false ... \ No newline at end of file