Interview Prep/Terraform/Providers, Resources and Data Sources

What does `default_tags` in the AWS provider do and what are its pitfalls?

IntermediateConceptProviders, Resources and Data Sources
Answer

It applies a tag set to every taggable resource created by that provider, so you do not repeat tags on each resource. Resource-level tags merge over defaults. Pitfall: tags appear in tags_all and old provider versions showed perpetual diffs if the same key was set in both places with different values; Auto Scaling groups need explicit tag blocks.

All Terraform questions Roadmap: Terraform

More on Providers, Resources and Data Sources