terraform
БесплатноБез исполняемых скриптовНе проверенPlan, apply, and manage infrastructure with Terraform. Use when tasks mention terraform commands, HCL configuration, provider setup, state management, or…
от greedychipmunk★ 24 звезды на GitHubОб этом скилле
Terraform
Intent Router
| Request | Reference | Load When |
|---|---|---|
| Install tool, first-time setup, tfenv | resources/install-and-setup.md |
User needs to install Terraform or manage versions |
| Provider config, variables, backends | resources/configuration.md |
User needs provider blocks, variable files, or backend setup |
| CLI commands, workflows | resources/command-cookbook.md |
User needs init/plan/apply/destroy patterns or state commands |
| State management, remote backends | resources/state-and-backends.md |
User asks about state files, locking, or remote backends |
Quick Start
# 1. Initialize working directory (downloads providers)
terraform init
# 2. Preview changes (always run before apply)
terraform plan
# 3. Apply changes (requires confirmation)
terraform apply
# 4. Destroy infrastructure (DANGEROUS — requires confirmation)
terraform destroy
Core Command Tracks
- Initialize:
terraform init— downloads providers, sets up backend - Validate & format:
terraform validate,terraform fmt -recursive - Preview:
terraform plan [-out=tfplan]— no changes made - Apply:
terraform apply [tfplan]— creates/updates resources - Inspect state:
terraform state list,terraform state show <resource> - Workspaces:
terraform workspace list,terraform workspace select <name>
Safety Guardrails
- Always run
terraform planbeforeterraform apply— review the diff carefully. terraform destroyis irreversible — confirm resource list before proceeding.- Never commit
terraform.tfstateor.tfvarsfiles containing secrets to version control. - Use
-targetsparingly; it can leave state inconsistent. - Enable state locking on remote backends to prevent concurrent modifications.
# Inspect managed resources in state before making changes
terraform state list
terraform state show aws_instance.web
Workflow
- Write or edit
.tfconfiguration files. - Run
terraform fmtto normalize formatting. - Run
terraform validateto catch syntax errors. - Run
terraform planand review the proposed changes. - Run
terraform applyonly after reviewing the plan. - Commit updated
terraform.lock.hclbut neverterraform.tfstate.
Related Skills
- pulumi — IaC using general-purpose languages (TypeScript, Python, Go, C#)
- ansible — configuration management and agentless automation
References
resources/install-and-setup.mdresources/configuration.mdresources/command-cookbook.mdresources/state-and-backends.md- Official docs: https://developer.hashicorp.com/terraform/docs
- Provider registry: https://registry.terraform.io
- Best practices: https://www.terraform-best-practices.com
- Tutorials: https://developer.hashicorp.com/terraform/tutorials
Установить terraform в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл terraform?
Plan, apply, and manage infrastructure with Terraform. Use when tasks mention terraform commands, HCL configuration, provider setup, state management, or workspace operations.
Как установить скилл terraform?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл terraform запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic