09When does duplicated Terraform code deserve extraction into a module, and how do you version modules so consumers do not break?▼medium★ EssentialNewHashiCorpAccentureInfosysunlockedExtract too early and you maintain a wrapper nobody thanks you for. Here is the extraction trigger, the semver contract that maps onto Terraform surfaces, and the parallel-release path for breaking changes.Open full answer →
18A module needs an AMI ID and three subnet IDs. Do you hardcode them, accept variables, or look them up?▼easyNewTCSAccentureInfosys○ sign inThe right answer depends on who owns the truth: the platform, the caller, or nobody. At scale there is a fourth option most candidates miss, where your image pipeline publishes values instead of Terraform hunting for them.Open full answer →