Guides through Terraform version upgrades including identifying deprecated syntax, updating provider versions, and migrating breaking changes.
Ships in terraform-toolkit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This skill helps safely upgrade Terraform and provider versions.
Use this skill when:
# Check Terraform version
terraform version
# Check provider versions in use
terraform providers
# Check for available updates
terraform init -upgrade
Before upgrading, review:
Incremental approach (recommended):
Example path: 1.0 → 1.1 → 1.2 → 1.3 → 1.4 → 1.5
# Before
terraform {
required_version = ">= 1.0"
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 4.0"
}
}
}
# After
terraform {
required_version = ">= 1.5"
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 5.0"
}
}
}
# Run plan to see warnings
terraform plan
# Example output:
# Warning: Argument is deprecated
# Use aws_s3_bucket_acl resource instead
terraform init -upgradeterraform plan and review changesterraform plan (should show no changes)# If state file is incompatible with provider source
terraform state replace-provider \
registry.terraform.io/-/aws \
registry.terraform.io/hashicorp/aws
# Clear provider cache and reinitialize
rm -rf .terraform/
rm .terraform.lock.hcl
terraform init -upgrade
# Good - Allows patch updates, prevents breaking changes
terraform {
required_version = "~> 1.5.0" # 1.5.x only
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 5.0" # 5.x only
}
}
}
# Too restrictive
required_version = "= 1.5.0" # Only exact version
# Too permissive
required_version = ">= 1.0" # Could break on major updates
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/terraform-toolkit:terraform-upgrade-assistantfrom terraform-toolkit
npx claudepluginhub armanzeroeight/fastagent-plugins --plugin terraform-toolkit5 skills in this plugin
/terraform-dependency-analyzerAnalyzes and visualizes resource dependencies in Terraform configurations, identifies circular dependencies, and suggests optimal resource ordering. This skill should be used when users need to understand resource relationships, troubleshoot dependency issues, optimize apply order, or refactor complex configurations./terraform-documentation-generatorGenerates documentation for Terraform modules using terraform-docs tool to auto-generate README files with input/output tables, usage examples, and requirements. This skill should be used when users need to document Terraform modules, create or update README files, or maintain consistent module documentation./terraform-module-scaffolderScaffolds new Terraform modules with standardized structure including main.tf, variables.tf, outputs.tf, versions.tf, and README.md. This skill should be used when users want to create a new Terraform module, set up module structure, or need templates for common infrastructure patterns like VPC, ECS, S3, or RDS modules./terraform-state-managerManages Terraform state operations including importing existing resources, moving resources between states, removing resources from state, and migrating state backends. This skill should be used when users need to import infrastructure into Terraform, refactor resource addresses, fix state issues, or migrate state storage locations.Other plugins' skills for the same job