It is really great when small things come along that simplify or reduce the amount of code you need and the implementation of Tags as part of the Terraform AWS Provider does exactly that. Thanks for making my future life easier. This has just come out Default Tags in the Terraform AWS Provider,
The Terraform AWS Provider (v3.38.0+) now supports defining default tags at the provider level—letting you centrally assign tags like “Environment,” “Owner,” or “Project” across almost all AWS resources, with individual resource tags overriding these defaults. While Auto Scaling Groups require a manual merge workaround, this feature streamlines tag management, enhances consistency, improves readability in infrastructure-as-code, and aligns with AWS best practices, making global tag enforcement simple and efficient.
Connect on LinkedIn. Follow me on Twitter. Grab the RSS Feed