Skip to content

Commit

Permalink
Added terraform apply in destroy stage
Browse files Browse the repository at this point in the history
  • Loading branch information
Abby Artagame committed Nov 12, 2024
1 parent f6caec7 commit 78b310a
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/tf-plan-apply-destroy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -186,12 +186,7 @@ jobs:
- name: Terraform Init
run: terraform init

# Terraform Plan Destroy - Check what to destroy
- name: Terraform Plan Destroy
run: |
terraform destroy -var-file='variables/dev.tfvars' -auto-approve
# Terraform Destroy
- name: Terraform Apply Destroy
- name: Terraform Destroy
run: |
terraform apply -auto-approve terraform.tfplan
terraform destroy -var-file='variables/dev.tfvars'

0 comments on commit 78b310a

Please sign in to comment.