From dbcec68bb528dbdf7d88f69333b2d1b2deec2cf3 Mon Sep 17 00:00:00 2001 From: Andy Miles Date: Wed, 6 Nov 2024 09:23:05 -0800 Subject: [PATCH] test on github --- .github/workflows/terraform.yml | 11 ++++++----- README.md | 4 +++- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/terraform.yml b/.github/workflows/terraform.yml index c520984..50d15d5 100644 --- a/.github/workflows/terraform.yml +++ b/.github/workflows/terraform.yml @@ -56,8 +56,9 @@ jobs: run: terraform apply -auto-approve tfplan working-directory: terraform - - name: Upload plan file - uses: actions/upload-artifact@v3 - with: - name: tfplan - path: terraform/tfplan + - name: Wait for 5 minutes + run: sleep 300 # 300 seconds equals 5 minutes + + - name: Destroy Terraform + run: terraform destroy -auto-approve + working-directory: terraform diff --git a/README.md b/README.md index 54df9b6..55b65de 100644 --- a/README.md +++ b/README.md @@ -41,4 +41,6 @@ http://:8080 # IMPORTANT To destroy the infrastructure, run terraform destroy locally. -Steps to be defined later in a video. now works remote but not locally +Steps to be defined later in a video. now works remote and autodeletes + +CARE WHERE YOU PUT SECRETS - MUST BE IN REPO (not env)