additional_tags

Type map(string)
Default null

Extra tags to include beyond defaults and required tags

Additional Tag Configuration

Specify extra tags that should be included in the merged tag output beyond the default and required tags. This is useful for adding context-specific tags without modifying the base policy.

Use Cases

  • Add project-specific tags for a deployment
  • Include temporary tags for tracking
  • Override default values for specific scenarios
  • Add compliance or audit tags

Example

module "tags" {
  source  = "registry.patterneddesigns.ca/standardnat/tagging-policy/aws"
  version = "1.1.0"

  required_tags = ["Environment", "Owner"]

  default_tags = {
    ManagedBy = "terraform"
  }

  additional_tags = {
    Sprint      = "2024-Q4-Sprint3"
    TicketRef   = "INFRA-1234"
    Temporary   = "true"
  }
}

Merge Order

Tags are merged in the following order (later values override earlier):

  1. Default tags
  2. Required tags (placeholder values if not provided)
  3. Additional tags

This allows additional tags to override defaults when needed.

Full Module Example

module "tagging_policy" {
  source  = "registry.patterneddesigns.ca/standardnat/tagging-policy/aws"
  version = "0.1.0"

  # additional_tags
  additional_tags = "..."

  # Other required inputs
}