ποΈ
Terraform
IaC Cloud & DevOpsInstall Command
npx clawhub@latest install terraform
Installation Guide
1
Check Environment
Make sure Node.js 22+ and OpenClaw are installed. Run openclaw --version in your terminal to verify.
2
Run Installation
Run the install command above in your terminal. ClawHub will automatically download and install Terraform to the ~/.openclaw/skills/ directory.
3
Verify Installation
Run openclaw skills list to check your installed skills and confirm Terraform appears in the list.
4
Configure (Optional)
Follow the configuration instructions in the description below to add skill settings to ~/.config/openclaw/openclaw.json5.
Manual Installation: Copy the Skill folder to
~/.openclaw/skills/ or the skills/ directory in your project root. Make sure the folder contains a SKILL.md file.
HCL Authoring
Plan/Apply
State Management
Detailed Description
The Terraform skill lets OpenClaw help you manage infrastructure as code, from writing HCL configurations to executing deployments.
Core Features
- HCL Generation: Automatically generate Terraform configuration code based on requirements
- Plan Execution: Run
terraform planand explain the changes - Apply Execution: Execute
terraform apply(requires confirmation) - State Viewing: View current infrastructure state and resource list
- Error Diagnosis: Analyze Terraform execution errors and provide fix suggestions
Configuration
{
skills: {
terraform: {
workingDir: "./infrastructure",
autoApprove: false,
backend: "s3"
}
}
}
Use Cases
- "Write a Terraform config to create a VPC with 2 subnets on AWS"
- "Run terraform plan to see what changes there are"
- "What resources are currently managed by Terraform?"
- "Why does the plan want to recreate the RDS instance?"