required_tags
List of tag keys that must be present on all resources
Tag Key Requirements
Define the list of tag keys that must be present on all resources managed by your infrastructure. These tags establish accountability, enable cost tracking, and support compliance requirements.
Common Required Tags
| Tag Key | Purpose |
|---|---|
Environment | Identifies deployment environment (dev, staging, prod) |
Owner | Team or individual responsible for the resource |
CostCenter | Cost allocation and chargeback |
Project | Associated project or initiative |
Application | Application or service name |
Best Practices
- Keep the required tag list focused on essential tags
- Document the expected values for each tag
- Use consistent naming conventions across tags
- Consider AWS Organizations tag policies for enforcement
- Include tags required for compliance frameworks (SOC2, HIPAA, etc.)
Example
module "tags" {
source = "registry.patterneddesigns.ca/standardnat/tagging-policy/aws"
version = "1.1.0"
required_tags = [
"Environment",
"Owner",
"CostCenter",
"Project",
"DataClassification"
]
}
Full Module Example
module "tagging_policy" {
source = "registry.patterneddesigns.ca/standardnat/tagging-policy/aws"
version = "0.1.0"
# required_tags
required_tags = "..."
# Other required inputs
}