# alibabacloud-terraform-code-generation

alibabacloud-terraform-code-generation generates validated Terraform HCL for Alibaba Cloud from natural language prompts. Helps set up VPCs, compute instances, and storage without digging through provider docs.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 110 installs · ★ 300 repo stars
- Author: aliyun
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/aliyun/alibabacloud-aiops-skills/tree/HEAD/skills/developertools/solutions/alibabacloud-terraform-code-generation/SKILL.md
- Updated: 2026-10-23
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/alibabacloud-terraform-code-generation

## What it does

The skill translates cloud infrastructure requests into Terraform configurations for the `aliyun/alicloud` provider. It expands high-level specs into full dependency trees, including VPCs, VSwitches, and security groups. Instead of relying on training memory, it retrieves resource definitions directly from the provider repository on GitHub during the run.

Internet access is required. Without a network connection, the agent cannot pull schema files and falls back to a local catalog. The workflow explicitly blocks `terraform apply`. Users must inspect the planned changes and execute deployment manually.

Credentials never touch the agent. It will not ask for or output `AK/SK` tokens in code or logs. The provider handles authentication directly through RAM roles or system variables. Terraform 1.5 or newer is recommended for validation checks.

## Requirements
- Works with: Terraform, AWS

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-terraform-code-generation -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/alibabacloud-terraform-code-generation/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/alibabacloud-terraform-code-generation/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-terraform-code-generation -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/alibabacloud-terraform-code-generation/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-terraform-code-generation -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/alibabacloud-terraform-code-generation/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install aliyun/alibabacloud-aiops-skills skills/developertools/solutions/alibabacloud-terraform-code-generation
```

2. **Manually: put the files in place**
- File: `.github/skills/alibabacloud-terraform-code-generation/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-terraform-code-generation -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/aliyun/alibabacloud-aiops-skills --path skills/developertools/solutions/alibabacloud-terraform-code-generation
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/alibabacloud-terraform-code-generation/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-terraform-code-generation -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/aliyun/alibabacloud-aiops-skills/tree/HEAD/skills/developertools/solutions/alibabacloud-terraform-code-generation/SKILL.md

## When to use it
- generate Terraform HCL configurations for Alibaba Cloud
- map resource dependencies for VPCs, subnets, and firewalls
- validate resource attributes against current provider schemas
- keep cloud credentials out of HCL files and agent logs

## Example prompts
- Write Terraform HCL for a VPC and two ECS instances in cn-hangzhou
- Generate Alibaba Cloud Terraform configuration for an ApsaraDB RDS instance
- Create Terraform resources for an OSS bucket and an ALB load balancer

## Similar
- [terraform-skill](https://affpapa.org/en/nevibecode/skills/terraform-skill.md) — skill · 8200 installs
- [terraform-stacks](https://affpapa.org/en/nevibecode/skills/terraform-stacks.md) — skill · 5900 installs
- [terraform-infrastructure](https://affpapa.org/en/nevibecode/skills/manutej-terraform-infrastructure.md) — skill · 439 installs
- [terraform-engineer](https://affpapa.org/en/nevibecode/skills/terraform-engineer.md) — skill · 5800 installs
- [iac-terraform-data-engineering](https://affpapa.org/en/nevibecode/skills/iac-terraform-data-engineering.md) — skill · 1800 installs
- [terraform-data-engineering-iac](https://affpapa.org/en/nevibecode/skills/terraform-data-engineering-iac.md) — skill · 1800 installs

From the same set: [aliyun/alibabacloud-aiops-skills](https://affpapa.org/en/nevibecode/by/aliyun/alibabacloud-aiops-skills.md) — 66 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
