The generated Terraform is valid HCL but plans a destructive replacement — no syntax error appeared. Why?
The silent failure is semantic schema or state drift. The configuration is syntactically valid, but provider version, lifecycle arguments, state, or imported resource identity differs from the agent's assumptions. Terraform correctly proposes a replacement. The engineering fix is to inspect the exact provider lockfile, current state, plan actions, lifecycle settings, and policy results; block any replace or destroy action until a human confirms the blast radius.
Terraform MCP vs cloud-provider MCP servers?
Terraform MCP reasons about desired infrastructure, provider schemas, modules, policies, and workspace runs; AWS or Azure servers inspect live resources directly. Use Terraform MCP for IaC contracts and plans, and cloud-specific servers for runtime state and incidents.
Can it run terraform apply?
Capabilities depend on the deployment and HCP Terraform permissions, but production apply should remain outside an autonomous MCP session. Use the server to generate and explain plans, then apply through reviewed CI or an approval workflow.
Why do provider examples fail after generation?
The example may target another provider version, resource mode, or module constraint. Read the lockfile and resolve the exact provider schema before relying on documentation examples.