How do you handle dev being cheaper than prod without forking code?
IntermediateProductionRepository Structure, Environments and Module Strategy
Answer
Make the differences explicit inputs: instance class, node count, multi-AZ, retention, deletion protection. Dev uses smaller defaults; prod overrides in its tfvars. Keep the topology identical (same modules, same dependencies) so what you test in dev is what you ship. Toggle optional components (NAT per AZ, WAF) by boolean variables.
More on Repository Structure, Environments and Module Strategy
Monorepo or multi-repo for Terraform?BeginnerHow do you lay out environments in a repo?BeginnerWhen would you adopt Terragrunt?BeginnerDo you use tfvars files per environment or code branches?IntermediateHow do you promote a module change from dev to qa to prod?AdvancedWhat is an internal module registry strategy?Beginner