tf_upgrade_impact
Determine what breaks if a pinned Terraform provider is upgraded or downgraded to an exact version: compare schemas, check constraints, and validate a temp copy.
Instructions
What breaks if a pinned provider is upgraded (or downgraded) to an exact version: compares the pinned schema with the target's for the arguments, nested blocks and attribute reads this configuration uses (root and installed modules), checks version constraints, and confirms with terraform validate on a temp copy. Downloads the target provider from the registry into a cache (temp dirs only; never touches dir). For the latest version number or upgrade guides, use the official terraform MCP server.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | No | Terraform root module directory (must already be initialized). Default: TERRAFORM_CWD_MCP_DIR, else the server's working directory. | |
| version | Yes | Exact target version, e.g. 6.0.0 (not a constraint) | |
| provider | Yes | Provider address as pinned, e.g. hashicorp/aws or registry.terraform.io/hashicorp/aws | |
| validate | No | Confirm with terraform validate on a temp copy (offline once the target is downloaded) | |
| include_unused | No | Also list target-version changes to types/arguments this configuration does not use |