PlugWiki

Huawei Cloud Terraform Generator Skill: Plan and Apply

Lets an agent turn a Huawei Cloud infrastructure goal into Terraform files, validate them and apply them after you approve.

Installs
17.5K
on skills.sh
Stars
59
on GitHub
Files
60+
besides SKILL.md
Updated
Oct 2026
last repo commit

This is Huawei Cloud's own skill for writing Terraform. The agent works out which resources your goal needs, proposes a plan for you to confirm, checks flavors and images in the target region, writes providers.tf, variables.tf, main.tf, terraform.tfvars and README.md, and runs fmt, init, validate and plan. It then shows a cost estimate and runs terraform apply only after you confirm.

It needs the huawei-cloud-computing-query skill for the region checks, so the install box installs both. It also needs Terraform, which the agent installs if it is missing, and your key in HW_ACCESS_KEY and HW_SECRET_KEY. Apply creates real, billed resources.

Good for

  • Engineers who describe a goal such as a website or database and want the Terraform written
  • Teams that want flavors, images and zones checked against the real region before any file is written
  • Anyone who wants a cost estimate and a plan shown before terraform apply runs

Install huawei-cloud-terraform-generator

Claude Code

  1. 1

    Copy this prompt.

    Install the huawei-cloud-terraform-generator skill in Claude Code. Run this command:
    
    npx skills add huaweicloud/huaweicloud-skills --skill huawei-cloud-terraform-generator --skill huawei-cloud-computing-query
    
    Then check that it loaded and tell me how to use it.
  2. 2

    Paste it into Claude Code. It shows the change and asks before running it.

Requires Node.js.

Install both skills: the Terraform generator must read and run huawei-cloud-computing-query before it writes any file. Set HW_ACCESS_KEY and HW_SECRET_KEY before you start, because SKILL.md tells the agent not to guide key setup. The agent installs Terraform itself if it is missing. The computing query skill writes its script calls as skill action=exec with skill:// paths, and the README does not say which agent supports that form, so check that yours does. The repo has no plugin manifest, so there is no plugin route.

Built from the package data we hold. Not yet tested by us. Source.

What's in the skill

When it loads

Generate Huawei Cloud Terraform configurations and execute deployment with user-guided approval. Use this skill when users want to create Huawei Cloud infrastructure as Terraform, whether they ask explicitly for Terraform or describe goals such as deploying a website, launching an application, or creating network, compute, database, load balancing, or storage resources. Trigger when users mention 创建/create、生成/generate、部署/deploy、配置/configure、使用/use、管理/manage、华为云/Huawei Cloud、Terraform、ECS、VPC、资源/resource、云服务器/ECS、虚拟机/VM、实例/instance、网络/network、负载均衡/ELB、数据库/database、RDS、存储/storage、OBS、桶/bucket、域名/domain、DNS、证书/certificate、SSL、监控/monitoring、日志/log、备份/backup、容器/container、CCE、函数工作流/FunctionGraph

Sections in SKILL.md

  1. 1. Overview
  2. 2. Prerequisites
  3. 3. Parameter Confirmation
  4. 4. Workflow
  5. 4.0 Credential handling (MUST READ)
  6. 4.1 Understand the user's real goal
  7. 4.2 Determine the resource set
  8. 4.3 Propose a resource plan for confirmation
  9. 4.3.1 Confirm security group rules with user (CRITICAL)
  10. 4.4 Verify resource availability BEFORE generating any code
  11. 4.5 Generate Terraform after confirmation
  12. 4.6 Verify credentials configuration
  13. 4.6.1 Configure Huawei Cloud mirror for provider download
  14. 4.7 Validate and fix the generated configuration
  15. 4.8 Display cost estimation (CRITICAL — MUST NOT SKIP)
  16. 4.9 Execute terraform apply with user confirmation

Key facts

Installs on skills.sh
17,547 (Nov 2, 2026)
Last repo commit
Oct 31, 2026

What it includes

  • Works out the resources and asks you to confirm the plan

    Infers the architecture from your goal, decides what to create or reuse, and proposes a concrete plan with defaults so you confirm only the decisions that matter.

    Try: “Deploy a public website on Huawei Cloud with Terraform.”

    Read · Plan

  • Asks which ports to open before writing rules

    Infers likely ports (80, 443, 22 for a web server), asks you to confirm, and writes rules only for the confirmed ports plus an egress rule.

    Read · Security group ports

  • Queries flavors and images in your region first

    Must read the huawei-cloud-computing-query SKILL.md, then query the target region for each flavor and image in the plan. If the query fails, SKILL.md says to stop, not to guess.

    Network · Availability check

  • Writes the five required Terraform files

    Writes providers.tf, variables.tf, main.tf, terraform.tfvars and README.md, with no outputs.tf. Passwords are generated at 16 or more characters and put in terraform.tfvars, and you are told what they are.

    Write · Generate the files

  • Writes a .tfrc and runs terraform init through the Huawei Cloud mirror

    Creates a .tfrc pointing at https://mirrors.huaweicloud.com/terraform/, sets TF_CLI_CONFIG_FILE on every init, and installs Terraform first if it is not on the PATH.

    Runs code · Mirror setup and init

  • Runs fmt, init, validate and plan until plan succeeds

    Runs terraform fmt -recursive, init, validate and plan in order, fixing the configuration and retrying on errors.

    Runs code · Validate

  • Shows a cost estimate, then applies after your confirmation

    After plan, shows resources, estimated monthly cost and a pricing calculator link, asks you to confirm in a dialog, runs terraform apply, repairs errors, then checks the deployed resources.

    Runs code · Cost estimate and apply

From the official docs

Permissions

High risk

It can create real, billed cloud resources with your key and writes generated passwords into terraform.tfvars. Use a test project, read the plan before you confirm, and keep terraform.tfvars out of git.

What it can do

  • Read your data
  • Create and change things
  • Delete things
  • Read-only mode

Watch out for

  • Apply creates real resources that cost money

    SKILL.md runs terraform apply after a confirmation dialog and a cost estimate. Read the plan output yourself, use a test project, and remember terraform destroy exists too (SKILL.md also requires confirmation for it). github.com

  • Secrets land in terraform.tfvars as plain text

    Generated passwords and the security token go into terraform.tfvars, and the agent tells you the passwords. Keep that file out of git and change the values if you want your own. github.com

  • Opened ports use 0.0.0.0/0

    The rule example in SKILL.md uses remote_ip_prefix 0.0.0.0/0 for the ingress rules, and says the rules for 443 and 22 are similar. Narrow the source range if you do not want the world to reach SSH. github.com

  • It installs Terraform and downloads the provider

    If Terraform is missing the agent installs it with a native package manager or the official binary. The provider comes only from https://mirrors.huaweicloud.com/terraform/, and SKILL.md says not to fall back to the upstream registry. For password-based remote-exec provisioners, reference/validation-workflow.md also shows apt-get, yum and dnf commands that install sshpass and expect. github.com

  • It depends on the computing query skill

    The flavor and image checks run that skill's scripts, which install pip packages and turn off TLS certificate checks. Read its safety notes before you rely on it. github.com

Security advisories

No published security advisories as of Nov 2, 2026.

Technical details
Turning on read-onlyNo read-only mode. The skill ends with terraform apply.
Talks tomirrors.huaweicloud.com/terraform/ for the provider download. Huawei Cloud APIs through Terraform and the query skill
Sign-in and keysThe Terraform provider reads HW_ACCESS_KEY and HW_SECRET_KEY. Generated passwords and a security token are written to terraform.tfvars.
Scopes
  • Writes Terraform files and a .tfrc in your project folder

  • Runs terraform init, plan and apply, which creates billed resources in your Huawei Cloud account

  • Reads HW_ACCESS_KEY, HW_SECRET_KEY and HW_SECURITY_TOKEN from the environment

  • Can install Terraform on your machine

Questions

What does huawei-cloud-terraform-generator do?

It makes an agent write Terraform for Huawei Cloud from a goal you describe. It confirms a plan with you, checks flavors and images in your region, validates the files down to terraform plan, shows a cost estimate and applies only after you confirm.

Which other skill does it need?

huawei-cloud-computing-query. SKILL.md says the agent must read that skill's SKILL.md and use it to check flavors and images before writing any .tf file. The install box installs both. That skill needs its own Python environment and read access to your account.

Does it need an API key?

Yes. SKILL.md reads HW_ACCESS_KEY and HW_SECRET_KEY from the environment, and HW_SECURITY_TOKEN for temporary keys, which it writes into terraform.tfvars as security_token. It tells the agent not to help you set the key up, so configure it before you start.

Is it safe to run?

It can create real, billed cloud resources, but SKILL.md says terraform apply and terraform destroy run only after your confirmation. It writes generated passwords and a security token into terraform.tfvars as plain text and installs Terraform if it is missing. Our advice: use a test project, read the plan output, and keep terraform.tfvars out of git.

Does it work in Claude Code, Codex or the Claude app?

The install box has Claude Code, Codex and standalone tabs. Huawei says only that the skills are compatible with mainstream AI Agents and names none. The computing query skill it depends on writes its script calls as skill action=exec with skill:// paths, and Huawei does not say which agents support that call, so check that yours does. There is no Claude app tab because the README documents no Claude app route and this skill runs Terraform locally.

Is huawei-cloud-terraform-generator official?

It is in Huawei Cloud's own huaweicloud/huaweicloud-skills repo, which the README calls officially maintained Huawei Cloud Agent Skills.

Information

updated Nov 2, 2026

Folder
skills/devtools/terraform/huawei-cloud-terraform-generator

huaweicloud/huaweicloud-skillsskills.sh

Sources

Docs, issue trackers and discussions this page is built from.

Show all 5
  1. huawei-cloud-terraform-generator SKILL.md · github.com
  2. huaweicloud-skills README · github.com
  3. huaweicloud-skills LICENSE · github.com
  4. Terraform generator guardrails · github.com
  5. Terraform generator validation workflow · github.com

Updated Nov 2, 2026.