Terraform Infrastructure as Code

Automate Terraform Cloud/Enterprise workspace, run, variable, and registry operations.

Updated Dec 4, 2025
One-click install
npx skills add https://github.com/CloudbrokerAz/ai-iac-consumer --skill terraform-infrastructure-as-code-cloudbrokeraz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Terraform Infrastructure as Code
Source: https://github.com/CloudbrokerAz/ai-iac-consumer/tree/main/.claude/skills/terraform-mcp-as-code
Command: npx skills add https://github.com/CloudbrokerAz/ai-iac-consumer --skill terraform-infrastructure-as-code-cloudbrokeraz

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires docker, node.js, and includes scripts (resource) components.

What problem does it solve?

This Skill automates HashiCorp Cloud Platform (HCP) Terraform operations, enabling programmatic management of workspaces, runs, variables, and registry interactions. It eliminates manual UI clicks and CLI commands for repetitive tasks, streamlining IaC workflows and enhancing automation.

Core Features & Use Cases

  • Workspace Management: Create, configure, and update Terraform Cloud/Enterprise workspaces programmatically.
  • Run Orchestration: Trigger and monitor Terraform runs, including plan and apply operations, with detailed status updates.
  • Variable Management: Create, update, and attach variable sets to workspaces for consistent environment-specific configurations.
  • Registry Interaction: Search public and private registries for modules, providers, and policies, and retrieve detailed documentation.
  • Use Case: Integrate into a CI/CD pipeline to automatically provision new development environments, attach required variable sets, and trigger initial Terraform runs upon new project creation.

Quick Start

Initialize the MCP client, then create a new Terraform Cloud workspace named 'my-new-project' in the 'my-org' organization with auto-apply disabled. Ensure to close the client afterwards.

Frequently Asked Questions about Terraform Infrastructure as Code

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Terraform Cloud workspace creation and management?

Automate workspace creation, configuration, and updates programmatically through Terraform Cloud/Enterprise APIs. This Skill exposes 34 type-safe tools to create workspaces, manage variables, trigger runs, and search registries without manual UI clicks, streamlining IaC workflows at scale.

Can I trigger and monitor Terraform runs programmatically?

Yes. Trigger plan and apply operations, monitor run status in real time, and retrieve detailed execution logs through the Skill's run orchestration tools. Integrate directly into CI/CD pipelines to automate environment provisioning and track Terraform operations end-to-end.

What's the best way to manage variables across Terraform Cloud workspaces?

Create and attach variable sets to multiple workspaces for consistent, environment-specific configurations. The Skill manages workspace variables and variable sets programmatically, eliminating manual configuration and reducing drift across development, staging, and production environments.

Do I need Terraform Cloud or Enterprise to use this automation?

Yes. A valid Terraform Cloud/Enterprise account and TFE_TOKEN environment variable are required. Docker must also be running to execute the MCP server that exposes the automation tools.

How do I search Terraform registries for modules and providers?

Query public and private Terraform registries to search for modules, providers, and policies, then retrieve detailed documentation and metadata. Integrate registry discovery into CI/CD to validate dependencies or auto-populate workspace configurations programmatically.

Can I integrate Terraform automation into a CI/CD pipeline?

Yes. Trigger workspace creation, attach variable sets, and run plan/apply operations automatically when projects are created. The Skill's API-driven design fits seamlessly into GitHub Actions, GitLab CI, Jenkins, or other CI/CD platforms for hands-off infrastructure provisioning.