Command Palette

Search for a command to run...

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

volcengine-iac

БесплатноБез исполняемых скриптовНе проверен

Use Terraform/IaC for Volcengine resources only when the user explicitly chooses Terraform/IaC, already has a Terraform workflow/state, or confirms they need…

volcengineот volcengine★ 42 звезды на GitHub

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

Volcengine IaC Skill

Generate, plan, and apply Volcengine infrastructure with Terraform when the user chooses IaC. volcengine-deploy still owns application packaging, runtime rollout, health checks, and CLI resource-ledger deployment.

When writing new examples, prefer the Cloud Control provider volcengine/volcenginecc. Start from verified examples under assets/examples/, then read the matching references/volcenginecc-*.md note for validation results and pitfalls. Blocked resources are tracked in references/volcenginecc-blocked.md. Existing reusable modules under assets/modules/ still use the legacy volcengine/volcengine provider until each component is re-verified with volcenginecc.

Use this skill when one of these is true:

  • the user asks for Terraform or IaC,
  • the user already has Terraform state/workspace,
  • plan/diff/drift detection matters,
  • the infrastructure is intended for long-term team-managed operation and the user chooses IaC,
  • the deployment needs VKE, managed databases/cache/storage, load balancers, domains/certificates, IAM/KMS, logging, monitoring, or Serverless triggers and the user chooses IaC.

Do not use this skill just because a deployment is long-lived, VKE-based, or has managed dependencies. Recommend IaC where appropriate, but let the user choose. Do not use this skill when the user asks for CLI, a temporary demo/quick validation, a pure ECS single-VM service with no plan/diff/destroy requirement, or when Terraform/provider installation is blocked and the target can safely use the CLI fallback.

The skill ships verified volcenginecc examples under assets/examples/, legacy reusable modules under assets/modules/, and wrapper scripts for tfvars generation, plan summaries, output export, and drift checks. Select files only after the target shape is known; do not load broad catalogs into context for small Terraform edits.

Resources outside the six legacy modules (CLB/ALB, VKE, CR, databases, caches, object storage) should be added as verified volcenginecc examples first, then wrapped only after repeated use proves the interface is stable.


0. Prerequisites

Required env vars: VOLCENGINE_ACCESS_KEY, VOLCENGINE_SECRET_KEY, VOLCENGINE_REGION. Do not print them or dump the environment (env, printenv, echo $VOLCENGINE_*, with or without a sed/grep filter) to check that they are set; a missing or rejected credential shows up as an error from terraform plan.

Required tools: terraform >= 1.5, jq, git, python3 (for gen_tfvars.py).

Optional: .volcengine/deploy-choice.json from volcengine-prepare/volcengine-deploy. If absent, ask a short batch of Terraform-specific questions.

The skill writes Terraform working files into .volcengine/terraform/ by default. State can use a TOS S3-compatible backend when the user wants remote state; see references/backend-tos.md. Local state is acceptable for small one-off experiments when the user accepts the tradeoff.

If invoked by volcengine-deploy, return outputs in .volcengine/iac-outputs.json and let deploy continue with image build/push, Cloud Assistant commands, Kubernetes manifests, veFaaS release, migrations, and health checks.


1. Generation Flow

Path A — driven by .volcengine/deploy-choice.json

work_dir="${work_dir:-.volcengine/terraform}"
workload="${workload:-standard}"
mkdir -p "$work_dir"

python3 scripts/gen_tfvars.py \
  --input ".volcengine/deploy-choice.json" \
  --output "$work_dir/terraform.tfvars" \
  --workload "$workload"

gen_tfvars.py derives:

  • project, region, AZ pair from the choice file and environment
  • enable_vke / enable_cr / enable_rds / enable_redis / enable_tos flags from the chosen mode and known dependencies
  • Sizing (instance type, node count, RDS spec, Redis capacity) from a coarse --workload tier

The user can override any value before applying.

Path B — natural language input

When no prepare report exists, ask the user one batch of questions, then create a Terraform working directory from verified examples or legacy modules and generate matching variable values. Required answers:

  1. Project name (resource prefix)
  2. Region (e.g. cn-beijing)
  3. Need VKE? (yes/no)
  4. Stateful deps needed: MySQL? PostgreSQL? Redis? TOS bucket?
  5. Workload tier: light / standard / heavy

Files written

gen_tfvars.py writes only terraform.tfvars. The Terraform configuration files come from copied verified examples under assets/examples/ or from a small root module assembled from assets/modules/; edit those files to match the selected stack instead of expecting the script to generate them.

File Purpose
main.tf / variables.tf Copied or assembled Terraform configuration
terraform.tfvars Concrete values generated by gen_tfvars.py or edited by hand
backend.tf Generated only when TOS remote sta
Полный SKILL.md на GitHub

Установить volcengine-iac в Claude Code и Claude Desktop

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

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

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

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

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

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

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

assets/examples/volcengine-vke-cr-nginx/infra/main.tfassets/examples/volcengine-vke-cr-nginx/workload/main.tfassets/examples/volcenginecc-alb-acl/main.tfassets/examples/volcenginecc-alb-certificate/main.tfassets/examples/volcenginecc-alb-customized-cfg/main.tfassets/examples/volcenginecc-alb-health-check/main.tfassets/examples/volcenginecc-alb/main.tfassets/examples/volcenginecc-apig/main.tfassets/examples/volcenginecc-autoscaling/main.tfassets/examples/volcenginecc-cbr/main.tfassets/examples/volcenginecc-cen/main.tfassets/examples/volcenginecc-clb-acl/main.tfassets/examples/volcenginecc-clb-certificate/main.tfassets/examples/volcenginecc-clb/main.tfassets/examples/volcenginecc-cloudmonitor/main.tfassets/examples/volcenginecc-cr/main.tfassets/examples/volcenginecc-directconnect/main.tfassets/examples/volcenginecc-dns/main.tfassets/examples/volcenginecc-ebs-snapshot-group/main.tfassets/examples/volcenginecc-ebs-snapshot/main.tfassets/examples/volcenginecc-ecs-extras/main.tfassets/examples/volcenginecc-ecs-launch-template-version/main.tfassets/examples/volcenginecc-ecs/invocation.tf.disabledassets/examples/volcenginecc-ecs/main.tfassets/examples/volcenginecc-efs/main.tfassets/examples/volcenginecc-filenas/main.tfassets/examples/volcenginecc-iam-oidc-provider/main.tfassets/examples/volcenginecc-iam-saml-provider/main.tfassets/examples/volcenginecc-iam-users/main.tfassets/examples/volcenginecc-iam/main.tfassets/examples/volcenginecc-kafka-allow-list/main.tfassets/examples/volcenginecc-kafka/main.tfassets/examples/volcenginecc-mongodb/main.tfassets/examples/volcenginecc-network/main.tfassets/examples/volcenginecc-private-nat/main.tfassets/examples/volcenginecc-privatelink/main.tfassets/examples/volcenginecc-privatezone-resolver/main.tfassets/examples/volcenginecc-privatezone/main.tfassets/examples/volcenginecc-rabbitmq/main.tfassets/examples/volcenginecc-rdsmssql/main.tf

FAQ

Что делает скилл volcengine-iac?

Use Terraform/IaC for Volcengine resources only when the user explicitly chooses Terraform/IaC, already has a Terraform workflow/state, or confirms they need plan/diff/drift/destroy safety for VKE, managed databases/cache/storage, load balancers, domains/certificates, logging/monitoring, or team-managed infrastructure.

Как установить скилл volcengine-iac?

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

Скилл volcengine-iac запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить volcengine-iac с