Mass Instance Destroy
mass instance destroyโ
Destroy (decommission) an instance
Synopsisโ
Destroy Instance
Destroys (decommissions) an instance. This permanently deletes the instance and all the resources it provisioned.
Usageโ
shell
mass instance destroy <project>-<env>-<manifest> [flags]
Flagsโ
-m, --messageโ add a message when decommissioning-f, --forceโ skip the confirmation prompt-p, --paramsโ path to a params json, tfvars or yaml file;-reads stdin-P, --patchโ patch the last deployed configuration with a JQ expression (repeatable)--followโ stream the deployment's logs to stdout until it completes
Examplesโ
shell
# Destroy an instance, confirming at the prompt
mass instance destroy api-prod-db
# Skip the prompt, for scripted teardown
mass instance destroy api-prod-db --force
# Destroy and watch the logs until it finishes
mass instance destroy api-prod-db --force --follow
mass instance destroy <project>-<env>-<manifest> [flags]
Optionsโ
--follow Stream the deployment's logs to stdout until it completes
-f, --force Skip confirmation prompt
-h, --help help for destroy
-m, --message string Add a message when decommissioning
-p, --params string Path to params json, tfvars or yaml file. Use '-' to read from stdin. When provided, the full configuration is replaced. $VAR and ${VAR} expand from the environment when set; $$ is a literal $.
-P, --patch stringArray Patch the last deployed configuration using a JQ expression. Can be specified multiple times.
Options inherited from parent commandsโ
--profile string Configuration profile to use (overrides MASSDRIVER_PROFILE and the active profile)
SEE ALSOโ
- mass instance - Manage instances of IaC deployed in environments.