environment

Required
Type string

Environment identifier for resource naming (e.g., dev, stg, prod, sbx, qa)

Environment Naming

The environment identifier is a required component that helps distinguish resources across different deployment stages. Common conventions include short codes for clarity.

EnvironmentValueDescription
DevelopmentdevDevelopment and testing
StagingstgPre-production validation
ProductionprodLive production workloads
SandboxsbxExperimental environments
Quality AssuranceqaQA testing environment

Best Practices

  • Use short, consistent abbreviations (3-4 characters)
  • Avoid environment names that could be confused (e.g., test vs tst)
  • Keep environment names lowercase for consistency
  • Document your environment naming conventions in a central location
  • Consider using environment identifiers that sort alphabetically in a logical order

Full Module Example

module "naming_convention" {
  source  = "registry.patterneddesigns.ca/standardnat/naming-convention/aws"
  version = "0.1.0"

  # environment
  environment = "..."

  # Other required inputs
  project = "..."
}