terraform plan -refresh=false
and is available only for destroying environments. To skip the state refresh during deployment, set the TF_CLI_ARGS_plan
environment variable to -refresh=false
.
While destroying an environment, you can also tick the skip state refresh
checkbox, and the environmental destruction process ignores any state mismatches and will remove the resources that match the current state.

Common errors that can be addressed using this policy:
Error message | Description |
---|---|
โaws_secretsmanager_secret โฆ You canโt perform this operation on secret โฆ because it was deletedโ | A secret used by a resource is marked for deletion or is already deleted. This data source throws an error on the plan phase and prevents the environmentโs deletion |
โError during making a request: โฆ /get โฆ in data โhttp โฆโ | An HTTP Data source that was available during the deploy phase is not available during the destroy phase |