Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

terraform-helper

БесплатноЗапускает вложенные скриптыНе проверен

Terraform and OpenTofu infrastructure as code - HCL, providers, modules, state management, and CLI operations When user works with .tf files, mentions…

shepherdjerredот shepherdjerred★ 85 звёзд на GitHub

Об этом скилле

Terraform & OpenTofu Helper Agent

What's New

Terraform 1.11 (Latest Stable)

  • Write-Only Arguments: Extend ephemeral values to managed resources; write-only arguments accept ephemeral values and are never persisted in plan or state files (e.g., password_wo on aws_db_instance)
  • Write-Only Versioning: Use _wo_version attributes to control when write-only values are re-sent to providers

Terraform 1.10

  • Ephemeral Values: Ephemeral input/output variables, ephemeral resources, and ephemeralasnull function; secrets never stored in state or plan files
  • Ephemeral Resources: Available in AWS, Azure, Kubernetes, and random providers for temporary credentials, tokens, and tunnels
  • terraform.applying Function: Distinguish between plan and apply phases in expressions
  • Performance: Refactored plan changes and reduced repeated state decoding
  • Testing: Backend blocks in run blocks, skip_cleanup attribute for test files

Terraform 1.9

  • Enhanced Variable Validation: Validation conditions can reference other variables, data sources, and locals
  • templatestring Function: Render templates from dynamic sources without saving to disk
  • Moved Block Improvements: Refactor null_resource to terraform_data via moved blocks
  • Provisioner in removed Blocks: Execute destroy-time provisioners when removing resource declarations

Terraform 1.8

  • Provider-Defined Functions: Call custom provider functions with provider::name::function() syntax
  • Cross-Type Refactoring: Move resources between different types using moved blocks (provider support required)
  • Provider Functions for AWS/GCP/K8s: ARN parsing, resource ID parsing, manifest encoding/decoding

OpenTofu 1.9

  • for_each on Providers: Aliased provider configurations support for_each for dynamic multi-instance providers
  • -exclude Flag: Exclude specific resources from plan/apply operations
  • Early Evaluation Prompts: Interactive variable prompting during early evaluation phase
  • encrypted_metadata_alias: Explicit ID control for encrypted state data

OpenTofu 1.8

  • .tofu File Extension: OpenTofu-specific files that override identically named .tf files for dual compatibility
  • Early Evaluation: Use variables and locals in backend config, module sources, and encryption config
  • Provider Mocking: Mock providers in test files for isolated unit testing
  • State Encryption: End-to-end client-side encryption with AES-GCM, PBKDF2, AWS KMS, GCP KMS key providers

Overview

Terraform and OpenTofu are infrastructure as code (IaC) tools that use HashiCorp Configuration Language (HCL) to define and provision cloud infrastructure declaratively. OpenTofu is an open-source fork (MPL 2.0) of Terraform (BSL licensed), maintaining HCL compatibility while adding features like state encryption and provider for_each.

CLI Commands

Auto-Approved Commands (Safe / Read-Only)

The following commands are safe to run without user confirmation:

  • terraform plan / tofu plan - Preview changes without applying
  • terraform validate / tofu validate - Check configuration syntax and consistency
  • terraform fmt / tofu fmt - Format HCL files to canonical style
  • terraform fmt -check - Check formatting without modifying files
  • terraform show / tofu show - Display state or plan file contents
  • terraform state list / tofu state list - List resources in state
  • terraform state show <addr> - Show attributes of a single resource
  • terraform output / tofu output - Display output values
  • terraform providers / tofu providers - Show required providers
  • terraform version / tofu version - Show version information
  • terraform graph / tofu graph - Generate dependency graph (DOT format)
  • terraform workspace list - List workspaces
  • terraform console - Interactive expression evaluation

Commands Requiring Confirmation

These commands modify infrastructure or state and need user approval:

  • terraform apply / tofu apply - Create or update infrastructure
  • terraform destroy / tofu destroy - Destroy managed infrastructure
  • terraform import / tofu import - Import existing resources into state
  • terraform state mv - Move resources within state
  • terraform state rm - Remove resources from state (does not destroy)
  • terraform state push - Overwrite remote state
  • terraform taint / terraform untaint - Mark/unmark resource for recreation
  • terraform force-unlock - Manually release a state lock
  • terraform workspace new/delete - Create or delete workspaces

Common Workflows

# Initialize working directory (downloads providers, modules)
terraform init

# Format all .tf files recursively
terraform fmt -recursive

# Validate configuration
terraform validate

# Preview changes
terraform plan

# Preview changes and save plan
terraform plan -out=tfplan

# Apply saved plan (no confirmation prom
Полный SKILL.md на GitHub

Установить terraform-helper в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/hashicorp-search-import/MANUAL-IMPORT.mdreferences/hashicorp-search-import/list_resources.shreferences/hashicorp-terraform-test/CI_CD.mdreferences/hashicorp-terraform-test/EXAMPLES.mdreferences/hashicorp-terraform-test/MOCK_PROVIDERS.mdreferences/hcl-patterns.mdreferences/providers-security.mdreferences/state-modules.md

FAQ

Что делает скилл terraform-helper?

Terraform and OpenTofu infrastructure as code - HCL, providers, modules, state management, and CLI operations When user works with .tf files, mentions Terraform, OpenTofu, tofu, HCL, infrastructure as code, or tf commands

Как установить скилл terraform-helper?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл terraform-helper запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить terraform-helper с