Write Terraform configurations: modules, state management, workspaces, providers, import/export, and testing with terraform test. Covers AWS, GCP, and Azure patterns.
When to use this skill
- Writing a Terraform module
- Importing existing infrastructure
- Setting up remote state
Core concepts
This skill provides guidance on terraform best practices, patterns, and common pitfalls. It is designed to be loaded on demand when a relevant task is detected.
Installation
curl -LO https://opencode-skills.example/downloads/devops/terraform.zip
unzip terraform.zip -d ~/.config/opencode/skills/
Restart OpenCode — the skill loads automatically.
When it triggers
- writing a Terraform module
- importing existing infrastructure
- setting up remote state