I am an engineer from Ukraine. I like astronomy and everything related to DevOps. I thrive on developing great product offerings, great people, and great teams.
The tags_all is a new attribute that is added to each resource, hence the state file will be changed even if the tags remain the same
If you try to specify the same list of tags globally (in provider configuration) and in the resource configuration, Terraform will throw an error:
Error: "tags" are identical to those in the "default_tags" configuration block of the provider: please de-duplicate and try again
Tags from default_tags are inherited by child modules. But if the child module has its own provider configuration for some resources, these resources will not inherit the default_tags from the root module.
Some things to add:
The
tags_all
is a new attribute that is added to each resource, hence the state file will be changed even if the tags remain the sameIf you try to specify the same list of tags globally (in provider configuration) and in the resource configuration, Terraform will throw an error:
Tags from
default_tags
are inherited by child modules. But if the child module has its own provider configuration for some resources, these resources will not inherit thedefault_tags
from the root module.The
default_tags
section supports variables: