Interview Prep/Terraform/Providers, Resources and Data Sources

Why do some attribute changes force a replacement?

IntermediateConceptProviders, Resources and Data Sources
Answer

The provider marks certain attributes as ForceNew because the cloud API cannot modify them in place (for example availability_zone on an EBS volume or name on many resources). The plan shows # forces replacement next to them. Always read plans for -/+ on stateful resources like databases.

All Terraform questions Roadmap: Terraform

More on Providers, Resources and Data Sources