Interview Prep/Terraform/Workflow and Providers

After enabling `default_tags` on the AWS provider, every plan shows tag changes on Auto Scaling groups or some resources. What do you do?

AdvancedScenarioWorkflow and Providers
Answer

Situation read → Some resources manage tags in a different way (inline tag blocks, or tags applied by another system), and default_tags overlaps with them.

What I'd do →

  1. Look at the plan to see whether the diff is on tags or tags_all.
  2. For ASGs, use tag blocks with propagate_at_launch or exclude the key from defaults.
  3. Use the provider's ignore_tags for tags owned by other tooling.
provider "aws" {
  default_tags { tags = { Team = "platform", ManagedBy = "terraform" } }
  ignore_tags  { key_prefixes = ["kubernetes.io/cluster/"] }
}

Why → Two writers of the same tag key produce a permanent diff; define one owner per key.

Interview tip → Same-key conflict between default_tags and resource tags can cause errors; keep keys disjoint.

All Terraform questions Roadmap: Terraform

More on Workflow and Providers