This property is used to destroy a component. When an environment is brought down, we refer to it as
teardown and when a component is brought down, it is
NOTE: The component-level
destroy property overrides the spec-level
teardown property, which means that if
true, the current component will be destroyed.
This is an optional field, with the default value as
You can find more information about teardown here.
You can always safeguard a component from getting destroyed by applying some protection to it using the
destroyProtection flag. When set to
true the current component will not be destroyed, overriding all other flags including the environment-level
This is also an optional field, with the default value as
components: - name: static-assets type: terraform destroy: false destroyProtection: true