Skip to content

Commit

Permalink
chore: Add hibernate option to destroy a deployment but keep images (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
lemaitre-aneo authored Dec 27, 2024
2 parents b9929a2 + 49d6d25 commit ba71da4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions infrastructure/quick-deploy/aws/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ refresh:
delete:
terraform destroy -var-file=$(VERSIONS_FILE) -var-file=$(PARAMETERS_FILE) -var-file=$(EXTRA_PARAMETERS_FILE) -auto-approve

hibernate:
terraform destroy -var-file=$(VERSIONS_FILE) -var-file=$(PARAMETERS_FILE) -var-file=$(EXTRA_PARAMETERS_FILE) -auto-approve -target=module.vpc -target=module.eks -target=module.mq -target=module.s3_os -target=module.elasticache

state-pull:
terraform state pull

Expand Down
3 changes: 3 additions & 0 deletions infrastructure/quick-deploy/gcp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ refresh:
delete:
terraform destroy -var-file=$(VERSIONS_FILE) -var-file=$(PARAMETERS_FILE) -var-file=$(EXTRA_PARAMETERS_FILE) -auto-approve

hibernate:
terraform destroy -var-file=$(VERSIONS_FILE) -var-file=$(PARAMETERS_FILE) -var-file=$(EXTRA_PARAMETERS_FILE) -auto-approve -target=module.vpc -target=module.gke -target=module.gcs_os -target=module.memorystore

output:
@terraform output -state=$(STATE_FILE) -json | jq 'map_values(.value)' > $(OUTPUT_FILE)
@echo "\nOUTPUT FILE: $(OUTPUT_FILE)"
Expand Down

0 comments on commit ba71da4

Please sign in to comment.