Skip to content

Commit

Permalink
changes to call destroy directly
Browse files Browse the repository at this point in the history
  • Loading branch information
hrai-nr committed Sep 14, 2024
1 parent e4dd32b commit 599381d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions terraform/ec2-stop-instances/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
stop:
terraform init -reconfigure
terraform refresh
terraform output -json instance_ids | jq -r '.[]' | paste -sd ' ' -
terraform apply -target null_resource.stop_instances -auto-approve
#terraform output -json instance_ids | jq -r '.[]' | paste -sd ' ' -
terraform destroy -auto-approve
#terraform apply -target null_resource.stop_instances -auto-approve
@echo "Stopping all the instances"

0 comments on commit 599381d

Please sign in to comment.