Skip to main content
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.
Destroy environment skip state refresh option

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
โŒ˜I