Skip State Refresh

Skipping an automatic state refresh policy allows you to ignore state mismatches and successfully create a plan for the destroy phase.

Skip State Refresh policy is used as a last resort when facing state mismatches that cause the terraform plan to fail. You can read more about it here.

This policy is the equivalent of 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.

1108

Common errors that can be addressed using this policy:

Error messageDescription
"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