Interview Prep/Terraform/Repository Structure, Environments and Module Strategy

How do you enforce naming and tagging standards?

BeginnerProductionRepository Structure, Environments and Module Strategy
Answer

Compute names in a shared locals or naming module ("${var.org}-${var.env}-${var.service}"), set default_tags at the provider, enforce mandatory tags with a Checkov or OPA policy on plan JSON, and add AWS tag policies or Config rules as a backstop. Standards enforced only by convention drift within months.

All Terraform questions Roadmap: Terraform in production

More on Repository Structure, Environments and Module Strategy