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.
More on Providers, Resources and Data Sources
What is a resource block and how is it addressed?BeginnerWhat is the difference between a resource and a data source?BeginnerHow do you configure a provider such as AWS?BeginnerHow do you use the same provider with multiple regions or accounts?IntermediateIn what order does the AWS provider look for credentials?IntermediateWhat is the difference between arguments and attributes?Beginner