terraform-infra-ops
Operate and update the Terraform infrastructure in ops/infra, including init/apply flows, formatting, and linting. Use when modifying Cloudflare Pages/R2 resources, updating Terraform state config, or running infra operations.
When & Why to Use This Skill
This Claude skill automates the management and maintenance of Terraform-based cloud infrastructure. It streamlines the Infrastructure as Code (IaC) lifecycle—including initialization, deployment, formatting, and linting—specifically optimized for Cloudflare Pages and R2 resources to ensure reliable, consistent, and error-free environment provisioning.
Use Cases
- Automated Infrastructure Deployment: Efficiently initialize and apply Terraform configurations to provision or update Cloudflare Pages and R2 resources directly through the AI agent.
- Code Quality & Compliance: Maintain high standards for Infrastructure as Code by automatically running 'terraform fmt' and 'tflint' to identify syntax errors and style inconsistencies before deployment.
- State Management & Backend Operations: Securely manage Terraform state configurations and backend environment variables (AWS S3/Cloudflare) to facilitate smooth infrastructure updates and collaborative workflows.
| name | terraform-infra-ops |
|---|---|
| description | Operate and update the Terraform infrastructure in ops/infra, including init/apply flows, formatting, and linting. Use when modifying Cloudflare Pages/R2 resources, updating Terraform state config, or running infra operations. |
Terraform Infra Ops
Overview
Apply and maintain the Cloudflare Terraform infrastructure using the repo's documented workflow.
Workflow
- Work from
ops/infraand follow the runbook inops/infra/README.mdfor first-run vs subsequent runs. - Export required backend variables (
AWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEY,AWS_ENDPOINT_URL_S3) before running Terraform. - Run
terraform fmtandtflinton changes before completion.