What do you do about a provider bug causing a perpetual diff?
IntermediateProductionRefactoring, Migration and Drift
Answer
Reproduce with the minimal config, search the provider's issue tracker, try a newer version, and work around with ignore_changes on the attribute or by normalising the value in code. Record the workaround with a link to the issue so it can be removed on upgrade.
More on Refactoring, Migration and Drift
What is your workflow for refactoring Terraform safely?IntermediateHow do you rename a resource inside a shared module without breaking consumers?AdvancedHow do you split one state into two without downtime?AdvancedHow do you merge two states?IntermediateHow do you import a large existing environment efficiently?IntermediateHow do you upgrade a major version of the AWS provider?Advanced