Interview Prep/Terraform/Dependencies, Cycles and Providers

After upgrading the AWS provider to 6.x, plans fail with `Unsupported argument` on arguments that worked before.

AdvancedTroubleshootingDependencies, Cycles and Providers
Answer

Likely causes → Major provider versions remove deprecated arguments and resources. Code used things marked deprecated in 5.x.

Diagnose → Read the provider's version 6 upgrade guide; before upgrading, terraform validate on 5.x shows Warning: Argument is deprecated for everything that will break.

Fix → Pin back to ~> 5.0 to unblock, fix the deprecations, then upgrade one stack at a time.

Prevent → Treat deprecation warnings as tech debt with an owner; pin majors in root modules (~> 5.0) so upgrades are deliberate.

All Terraform questions Roadmap: Terraform

More on Dependencies, Cycles and Providers