Terraform AWS VPC Designer skill for Claude and Codex
Produces a secure multi-AZ AWS VPC in Terraform: subnets laid out per zone, route tables and NAT sized to your budget, and a plan-ready module with variables…
Install it once and Claude or Codex runs it for you. When your request matches, your AI loads the skill, asks for anything it is missing, and works through the template itself. Prefer to fill it in by hand? See the full prompt template.
Download the skill (.zip) · View SKILL.md
When it is used
Use when an AWS VPC with public and private subnets across several availability zones needs writing in Terraform with the NAT and routing decided. Do not use for EKS clusters, security group rules for application tiers, or VPCs on GCP and Azure. Related topics: coding, devops, terraform.
What it will ask you for
- VPC name (free text, e.g. "dev-vpc")
- CIDR block (choose one: 10.0.0.0/16, 172.16.0.0/16, 192.168.0.0/16)
- Number of availability zones (number from 2 to 4)
- Private subnets (choose one: Yes, No)
- Public subnets (choose one: Yes, No)
- NAT gateway (choose one: Single NAT, One per AZ, None)
- Environment (choose one: dev, staging, production)
- Extras (choose any: VPC flow logs, S3 and DynamoDB gateway endpoints, Database subnet tier, IPv6)
How it works
- Split the CIDR with cidrsubnet into one subnet per tier per AZ with spare space, and present the layout as a table.
- Write the VPC, subnets, internet gateway, and per-tier route tables so private subnets never route to the internet gateway.
- Implement the requested NAT mode and state its availability and cost trade-off in one sentence.
- Structure the result as a module with validated variables, outputs for VPC and subnet IDs, and a pinned provider version.
- Add each requested extra as an optional resource behind a variable, and summarise the monthly cost drivers.
What you get
Four Terraform code blocks (versions.tf, variables.tf, main.tf, outputs.tf), a subnet layout table, and a three-line cost note.
What it watches out for
- Hardcoding availability zone names, which breaks the module the first time it is applied in another region.
- Giving private subnets a route to the internet gateway, which quietly makes them public.
- Choosing one NAT gateway for production without saying that a zone outage then takes down egress for every AZ.
How to install
Claude.ai and the Claude desktop app
- Download the skill .zip.
- Open Settings, then Capabilities, and find Skills.
- Choose Upload skill and select the .zip.
- Ask Claude for help with the task. It loads the skill when your request matches.
Claude Code
- Download the skill .zip.
- Unzip it into ~/.claude/skills/ (or .claude/skills/ inside a project).
- Start a new session. Claude Code loads the skill when your request matches.
Codex
- Download the skill .zip.
- Unzip it into ~/.agents/skills/ (or .agents/skills/ inside a project).
- Codex picks it up on its own. Type $ and the skill name to use it, or just ask for the task.
Cursor
- Download the Cursor rule (.mdc).
- Save it in .cursor/rules/ inside your project.
- Cursor's agent applies the rule when your request matches its description.
AGENTS.md (Codex, Cursor, and other coding agents)
- Copy the AGENTS.md section.
- Paste it into AGENTS.md at the root of your repository, creating the file if needed.
- Coding agents that read AGENTS.md follow it when your request fits.