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)