Skip to content

Commit

Permalink
chore: Add VPC destruction step to AWS deployment workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nilgaar committed Jul 13, 2024
1 parent c52e749 commit 0c509b6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/deploy_aws_vpc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,9 @@ jobs:
run: |
cd ./IaC/aws/terraform/
tofu apply -auto-approve -var="AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}" -var="AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}"
- name: Destroy VPC
if: github.ref == 'refs/heads/develop'
run: |
cd ./IaC/aws/terraform/
tofu destroy -auto-approve -var="AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}" -var="AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}"

0 comments on commit 0c509b6

Please sign in to comment.