required_tags

Type list(string)
Default null

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 KeyPurpose
EnvironmentIdentifies deployment environment (dev, staging, prod)
OwnerTeam or individual responsible for the resource
CostCenterCost allocation and chargeback
ProjectAssociated project or initiative
ApplicationApplication 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
}