Environment Teardown

When environments are torn down by Gallery, we try to spin down any resources that are used by the environment.

Monitoring the Teardown Process

When an environment is torn down, it's status changes to "terminating" and it will not be visible with default filtering on the environments page. To monitor the environment as it is being terminated, select "Terminating" as a status in the status filter button as shown below.

If you select "Logs" under the environment page, you should then be able to view the live-updating teardown logs for the infrastructure around the service. If you are using a Terraform service, these logs will be the output of the terraform destroy command. If there are any errors in the teardown process, the environment's status will change to "Teardown Failed," so you can handle any dangling infrastructure appropriately (if this does happen, please contact us so we can diagnose the issue).

Terminated environments are deleted from the system (along with any build artifacts) within an hour of termination, so make sure that you have any required state downloaded from Gallery before you tear down any environments.

Last updated