Terraform State Manager

🌐Community
by first-fluke · vlatest · Repository

Automates Terraform state management, ensuring consistency and preventing drift across your cloud infrastructure.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add terraform-state-manager npx -- -y @trustedskills/terraform-state-manager
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "terraform-state-manager": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/terraform-state-manager"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

What it does

The terraform-state-manager skill allows AI agents to interact with and manage Terraform state files. It can retrieve, update, and apply changes to infrastructure as code configurations defined in Terraform. This enables automated provisioning and management of cloud resources based on desired states specified within the Terraform configuration.

When to use it

  • Automated Infrastructure Provisioning: When you need an AI agent to create new cloud resources (e.g., servers, databases) from a Terraform template.
  • Infrastructure Updates: To have an agent apply changes defined in a Terraform configuration file, ensuring your infrastructure matches the desired state.
  • Resource Drift Remediation: When resources deviate from the Terraform definition, use this skill to bring them back into alignment.
  • Automated Rollbacks: To revert infrastructure changes by applying previous Terraform states.

Key capabilities

  • Terraform State Retrieval
  • Terraform Plan Generation
  • Terraform Apply Execution
  • State File Updates

Example prompts

  • "Apply the Terraform configuration located at /path/to/main.tf."
  • "Show me the plan for the infrastructure defined in infrastructure/terraform.tfstate."
  • "Retrieve the current state of my AWS resources from the Terraform state file."

Tips & gotchas

  • Requires appropriate credentials configured within your environment to authenticate with the target cloud provider and access the Terraform state backend.

Tags

🛡️

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
first-fluke
Installs
9

🌐 Community

Passed automated security scans.