Patterned Designs HCL Module Registry
v0.1.0 latest View all versions

Terraform module for tagging-policy on aws

View Full Documentation Usage guides, examples & best practices
module "tagging-policy" {
  source  = "registry.patterneddesigns.ca/standardnat/tagging-policy/aws"
  version = "0.1.0"
}
required_tags
list(string) default: null

List of tag keys that must be present on all resources

Constraints
  • Required tag keys must start with a letter and contain only alphanumeric characters, hyphens, and underscores.
default_tags
map(string) default: null

Default tag values applied to all resources

enforce_lowercase
bool default: null

Enforce lowercase tag values for consistency

tag_values
map(list(string)) default: null

Allowed values for specific tag keys. Define constraints for tags that have a limited set of valid options (e.g., Environment = ["dev", "staging", "prod"]).

Constraints
  • Tag value constraints must have at least one allowed value per key.
additional_tags
map(string) default: null

Extra tags to include beyond defaults and required tags

merged_tags

Combined tags with defaults, required tags, and additional tags

validation_rules

Tag validation rules for policy enforcement (JSON-encoded)

required_tag_keys

List of required tag key names