infra-as-code
Define and manage cloud infrastructure with code. Use when writing Terraform, CloudFormation, or Pulumi configs, managing state, planning deployments, setting up networking/compute/storage resources, or debugging infrastructure drift.
Why use this skill?
Learn to manage AWS, Azure, and GCP infrastructure using OpenClaw's infra-as-code skill. Automate Terraform, CloudFormation, and Pulumi for reliable, repeatable cloud deployments.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/gitgoodordietrying/infra-as-codeWhat This Skill Does
The infra-as-code skill empowers OpenClaw to act as a DevOps engineer by generating, managing, and debugging cloud infrastructure configurations. It supports industry-standard declarative tools like Terraform, CloudFormation, and Pulumi. This skill enables the agent to architect complex environments—including VPCs, compute clusters, serverless functions, and database instances—ensuring that infrastructure is reproducible, version-controlled, and documented. Whether you are bootstrapping a new cloud environment or refining existing resource tags, this skill provides the necessary syntax patterns and best practices to maintain cloud stability.
Installation
To integrate this skill, run the following command in your terminal:
clawhub install openclaw/skills/skills/gitgoodordietrying/infra-as-code
Ensure you have the appropriate cloud provider CLI (like AWS CLI) configured in your environment before usage.
Use Cases
- Cloud Provisioning: Rapidly deploy network topologies and server stacks from scratch.
- State Management: Solve complex Terraform state drift issues or migrate backends to S3/DynamoDB.
- Multi-Environment Orchestration: Create consistent environments across development, staging, and production using variable files.
- Security Hardening: Audit HCL code for sensitive data leakage and enforce strict security group rules.
- Refactoring: Convert manual cloud console configurations into repeatable Infrastructure as Code (IaC) modules.
Example Prompts
- "Can you help me write a Terraform script to deploy a private VPC with two public subnets and one private subnet in AWS?"
- "I am getting a Terraform plan error regarding resource drift. Here is my current tfstate file and my main.tf, can you tell me how to reconcile them?"
- "Please generate a Pulumi program in TypeScript that deploys an S3 bucket with versioning enabled and a lifecycle policy to transition objects to Glacier after 30 days."
Tips & Limitations
To maximize the utility of this skill, always utilize terraform plan before applying any changes to production environments. Be aware that this skill performs file-read and file-write operations; ensure your environment variables (like AWS credentials) are stored securely and never committed to source control. The agent currently assumes you have the appropriate provider plugins installed locally. If you encounter errors, verify your provider versions in providers.tf and ensure that your cloud authentication is active in your terminal session.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-gitgoodordietrying-infra-as-code": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-write, file-read, code-execution, external-api
Related Skills
shell-scripting
Write robust, portable shell scripts. Use when parsing arguments, handling errors properly, writing POSIX-compatible scripts, managing temp files, running commands in parallel, managing background processes, or adding --help to scripts.
api-dev
Scaffold, test, document, and debug REST and GraphQL APIs. Use when the user needs to create API endpoints, write integration tests, generate OpenAPI specs, test with curl, mock APIs, or troubleshoot HTTP issues.
skill-writer
Write high-quality agent skills (SKILL.md files) for ClawdHub/MoltHub. Use when creating a new skill from scratch, structuring skill content, writing effective frontmatter and descriptions, choosing section patterns, or following best practices for agent-consumable technical documentation.
log-analyzer
Parse, search, and analyze application logs across formats. Use when debugging from log files, setting up structured logging, analyzing error patterns, correlating events across services, parsing stack traces, or monitoring log output in real time.
data-validation
Validate data with schemas across languages and formats. Use when defining JSON Schema, using Zod (TypeScript) or Pydantic (Python), validating API request/response shapes, checking CSV/JSON data integrity, or setting up data contracts between services.