terraform-infrastructure
Terraform infrastructure as code workflow for provisioning cloud resources, creating reusable modules, and managing infrastructure at scale.
Best use case
terraform-infrastructure is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Terraform infrastructure as code workflow for provisioning cloud resources, creating reusable modules, and managing infrastructure at scale.
Teams using terraform-infrastructure should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/terraform-infrastructure/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How terraform-infrastructure Compares
| Feature / Agent | terraform-infrastructure | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Terraform infrastructure as code workflow for provisioning cloud resources, creating reusable modules, and managing infrastructure at scale.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Terraform Infrastructure Workflow ## Overview Specialized workflow for infrastructure as code using Terraform including resource provisioning, module creation, state management, and multi-environment deployments. ## When to Use This Workflow Use this workflow when: - Provisioning cloud infrastructure - Creating Terraform modules - Managing multi-environment infra - Implementing IaC best practices - Setting up Terraform workflows ## Workflow Phases ### Phase 1: Terraform Setup #### Skills to Invoke - `terraform-skill` - Terraform basics - `terraform-specialist` - Advanced Terraform #### Actions 1. Initialize Terraform 2. Configure backend 3. Set up providers 4. Configure variables 5. Create outputs #### Copy-Paste Prompts ``` Use @terraform-skill to set up Terraform project ``` ### Phase 2: Resource Provisioning #### Skills to Invoke - `terraform-module-library` - Terraform modules - `cloud-architect` - Cloud architecture #### Actions 1. Design infrastructure 2. Create resource definitions 3. Configure networking 4. Set up compute 5. Add storage #### Copy-Paste Prompts ``` Use @terraform-module-library to provision cloud resources ``` ### Phase 3: Module Creation #### Skills to Invoke - `terraform-module-library` - Module creation #### Actions 1. Design module interface 2. Create module structure 3. Define variables/outputs 4. Add documentation 5. Test module #### Copy-Paste Prompts ``` Use @terraform-module-library to create reusable Terraform module ``` ### Phase 4: State Management #### Skills to Invoke - `terraform-specialist` - State management #### Actions 1. Configure remote backend 2. Set up state locking 3. Implement workspaces 4. Configure state access 5. Set up backup #### Copy-Paste Prompts ``` Use @terraform-specialist to configure Terraform state ``` ### Phase 5: Multi-Environment #### Skills to Invoke - `terraform-specialist` - Multi-environment #### Actions 1. Design environment structure 2. Create environment configs 3. Set up variable files 4. Configure isolation 5. Test deployments #### Copy-Paste Prompts ``` Use @terraform-specialist to set up multi-environment Terraform ``` ### Phase 6: CI/CD Integration #### Skills to Invoke - `cicd-automation-workflow-automate` - CI/CD - `github-actions-templates` - GitHub Actions #### Actions 1. Create CI pipeline 2. Configure plan/apply 3. Set up approvals 4. Add validation 5. Test pipeline #### Copy-Paste Prompts ``` Use @cicd-automation-workflow-automate to create Terraform CI/CD ``` ### Phase 7: Security #### Skills to Invoke - `secrets-management` - Secrets management - `terraform-specialist` - Security #### Actions 1. Configure secrets 2. Set up encryption 3. Implement policies 4. Add compliance 5. Audit access #### Copy-Paste Prompts ``` Use @secrets-management to secure Terraform secrets ``` ## Quality Gates - [ ] Resources provisioned - [ ] Modules working - [ ] State configured - [ ] Multi-env tested - [ ] CI/CD working - [ ] Security verified ## Related Workflow Bundles - `cloud-devops` - Cloud/DevOps - `kubernetes-deployment` - Kubernetes - `aws-infrastructure` - AWS specific
Related Skills
terraform-state-manager
Terraform State Manager - Auto-activating skill for DevOps Advanced. Triggers on: terraform state manager, terraform state manager Part of the DevOps Advanced skill category.
terraform-provider-config
Terraform Provider Config - Auto-activating skill for DevOps Advanced. Triggers on: terraform provider config, terraform provider config Part of the DevOps Advanced skill category.
terraform-module-creator
Terraform Module Creator - Auto-activating skill for DevOps Advanced. Triggers on: terraform module creator, terraform module creator Part of the DevOps Advanced skill category.
building-terraform-modules
This skill empowers Claude to build reusable Terraform modules based on user specifications. It leverages the terraform-module-builder plugin to generate production-ready, well-documented Terraform module code, incorporating best practices for security, scalability, and multi-platform support. Use this skill when the user requests to create a new Terraform module, generate Terraform configuration, or needs help structuring infrastructure as code using Terraform. The trigger terms include "create Terraform module," "generate Terraform configuration," "Terraform module code," and "infrastructure as code."
collecting-infrastructure-metrics
This skill enables Claude to collect comprehensive infrastructure performance metrics across compute, storage, network, containers, load balancers, and databases. It is triggered when the user requests "collect infrastructure metrics", "monitor server performance", "set up performance dashboards", or needs to analyze system resource utilization. The skill configures metrics collection, sets up aggregation, and helps create infrastructure dashboards for health monitoring and capacity tracking. It supports configuration for Prometheus, Datadog, and CloudWatch.
detecting-infrastructure-drift
This skill enables Claude to detect infrastructure drift from a desired state. It uses the `drift-detect` command to identify discrepancies between the current infrastructure configuration and the intended configuration, as defined in infrastructure-as-code tools like Terraform. Use this skill when the user asks to check for infrastructure drift, identify configuration changes, or ensure that the current infrastructure matches the desired state. It is particularly useful in DevOps workflows for maintaining infrastructure consistency and preventing configuration errors. Trigger this skill when the user mentions "drift detection," "infrastructure changes," "configuration drift," or requests a "drift report."
generating-infrastructure-as-code
This skill enables Claude to generate Infrastructure as Code (IaC) configurations. It uses the infrastructure-as-code-generator plugin to create production-ready IaC for Terraform, CloudFormation, Pulumi, ARM Templates, and CDK. Use this skill when the user requests IaC configurations for cloud infrastructure, specifying the platform (e.g., Terraform, CloudFormation) and cloud provider (e.g., AWS, Azure, GCP), or when the user needs help automating infrastructure deployment. Trigger terms include: "generate IaC", "create Terraform", "CloudFormation template", "Pulumi program", "infrastructure code".
checking-infrastructure-compliance
Execute use when you need to work with compliance checking. This skill provides compliance monitoring and validation with comprehensive guidance and automation. Trigger with phrases like "check compliance", "validate policies", or "audit compliance".
terraform-test
Comprehensive guide for writing and running Terraform tests. Use when creating test files (.tftest.hcl), writing test scenarios with run blocks, validating infrastructure behavior with assertions, mocking providers and data sources, testing module outputs and resource configurations, or troubleshooting Terraform test syntax and execution.
terraform-style-guide
Generate Terraform HCL code following HashiCorp's official style conventions and best practices. Use when writing, reviewing, or generating Terraform configurations.
terraform-stacks
Comprehensive guide for working with HashiCorp Terraform Stacks. Use when creating, modifying, or validating Terraform Stack configurations (.tfcomponent.hcl, .tfdeploy.hcl files), working with stack components and deployments from local modules, public registry, or private registry sources, managing multi-region or multi-environment infrastructure, or troubleshooting Terraform Stacks syntax and structure.
terraform-search-import
Discover existing cloud resources using Terraform Search queries and bulk import them into Terraform management. Use when bringing unmanaged infrastructure under Terraform control, auditing cloud resources, or migrating to IaC.