01count versus for_each in Terraform: when does list ordering cause a destroy and recreate?▼hard★ EssentialNewHashiCorpGoogleAmazon3 repliesunlockedThe Terraform question that actually filters. Everyone knows both meta-arguments exist; the answer is about how state addresses resources, and why an index is a fragile key.Open full answer →
03Two engineers run terraform apply against the same backend at the same time. What happens?▼mediumNewHashiCorpAccentureInfosys2 repliesunlockedEveryone answers state locking. The follow-up is what happens when locking is not configured, and what you do with a stale lock at 2am, which is where the answer gets real.Open full answer →
04Where does Terraform stop and Ansible start? Give me a case where using the wrong one hurts.▼mediumNewRed HatAccentureInfosys2 repliesunlockedA staple of services-company interviews, and the boring answer (provisioning versus configuration) is only half of it. The useful half is what happens when you push either tool past its model.Open full answer →
06One Terraform module tree, three environments. How do you lay out state so a production apply can never touch anything else?▼mediumNewHashiCorpAccentureInfosysunlockedState layout needs an access boundary. Separate environment credentials and restrict who can assume them; a directory name cannot contain a mistaken apply.Open full answer →
07Five hundred resources were built by hand over three years and must come under Terraform. Walk me through importing them without breakage.▼hard★ EssentialNewHashiCorpAccentureIBMunlockedThe services-market question that decides who can actually run a migration. Import is the easy part; the hard parts are resource-for-resource fidelity and proving the first plan is empty.Open full answer →
08Resources keep changing outside Terraform and plans show surprises weeks later. How do you detect drift early, and who may change things?▼hardNewHashiCorpSalesforceGoldman SachsunlockedDrift is a governance problem wearing a tooling costume. Detection is easy; the scored content is attribution (who changed it and why) and the policy decision that most teams avoid making.Open full answer →
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 →
11An apply ran in an order that broke the deploy. How does Terraform decide ordering, and where does depends_on fit?▼mediumNewHashiCorpFlipkartUber○ sign inEveryone recites that depends_on forces ordering. The stronger half of the answer is the graph you never see: implicit edges from references, why file layout orders nothing, and what explicit edges cost.Open full answer →
12You spot a local-exec provisioner in a production Terraform module. Make the case for keeping or killing it.▼easyNewHashiCorpTCSInfosys○ sign inHashiCorp calls provisioners a last resort and expects you to say why in concrete terms: tainted resources, invisible drift, SSH reachability. Then name what replaces each legitimate use.Open full answer →
37A team proposes replacing Terraform with Crossplane so infrastructure is reconciled like a Deployment. Argue it.▼hardNewRed HatMicrosoftSAP◆ premiumThe pitch is continuous reconciliation instead of a plan someone runs. The cost is that your cloud estate now depends on a cluster, and that drift correction without a plan step is a very different risk posture.Open full answer →
09Half our resources are untagged and finance cannot allocate the bill. How do you fix cost allocation?▼easyNewTCSAccentureJPMorgan ChaseunlockedMost tagging initiatives are spring cleans that rot within two quarters. The durable answer treats the schema like an API contract enforced where resources are born, and knows which lever actually wins.Open full answer →
42Half your team's Terraform is now written by an assistant. What changes about how you run reviews and pipelines?▼hardNewHashiCorpGitLabGitHub2 replies◆ premiumGenerated infrastructure code is plausible, fluent and confidently wrong in specific ways. The volume goes up, the reviewer attention per line goes down, and the controls that used to be optional stop being optional.Open full answer →