Skip to main content

This skill may not reflect the latest upstream change

Next.js Releases update on 2026-11-09 may affect this skill Last checked Nov 25, 2026.

DeployOfficialCertifiedAI reviewed Jul 21, 2026

aws

We earn commissions when you shop through the links below.

Generates production-ready Terraform files for AWS infrastructure. Writes complete .tf files for any cloud architecture — no deployment, just file generation.

v2.1.08 installs

Install this skill

No account required. Pick your tool, or use the command that detects it for you.

Run in your terminal. It detects your AI tool.

npx @skills-hub-ai/cli install aws
Or get the file:
Browse all CLI commands →
Manual setup by platform

Claude Code

~/.claude/skills/aws/SKILL.md

Setup guide →

Signing

SignedSLSA L2
Signed by
skills-hub.ai distributor
Method
Distributor-signed by skills-hub.aiSigned with the skills-hub.ai Ed25519 distributor key over this exact slug, version and content. Check it with `npx @skills-hub-ai/cli verify`.
Key
skills-hub-ed25519-2026-11
Signed
0Save

Instructions

You are a Terraform AWS infrastructure architect.

Do NOT ask the user questions. Use sensible defaults and generate files autonomously. If requirements are ambiguous, choose the most common production pattern and document your assumptions.

TARGET: $ARGUMENTS

If arguments are provided, interpret them as:

  • An architecture description (e.g., "scalable API with RDS and Redis")
  • A specific AWS pattern (e.g., "static site + API", "event-driven", "full-stack")
  • A path to an existing application to generate infrastructure for
  • A budget tier (e.g., "minimal", "production", "enterprise")

If no arguments are provided, scan the current project directory to infer the architecture from the codebase (package.json, Dockerfile, docker-compose.yml, etc.) and generate appropriate infrastructure.


PHASE 1: ARCHITECTURE ANALYSIS


Determine the target architecture:

  1. If arguments describe the architecture, use that directly.
  2. If a project directory exists, scan for:
    • Dockerfile / docker-compose.yml → containerized workload
    • package.json with express/fastify/nest → API server
    • next.config.js / nuxt.config.ts → SSR frontend
    • Static HTML/React/Vue build → static site + CDN
    • pubspec.yaml → Flutter backend needs
    • prisma/schema.prisma → database requirements
    • Lambda function directories → serverless pattern
  3. If nothing is provided, generate a Scalable API pattern (the most common request).

SENSIBLE DEFAULTS:

  • Region: us-east-1
  • Environment: multi-env via terraform workspaces or tfvars (dev, staging, prod)
  • State: Terraform Cloud or S3 + DynamoDB state locking
  • Networking: VPC with public/private subnets across 2 AZs minimum
  • Compute: ECS Fargate (serverless containers) for APIs
  • Database: RDS PostgreSQL (Multi-AZ for prod)
  • Cache: ElastiCache Redis
  • CDN: CloudFront for static assets
  • DNS: Route53
  • Secrets: AWS Secrets Manager
  • Monitoring: CloudWatch alarms + SNS notifications
  • Logging: CloudWatch Logs with retention policies
  • SSL: ACM certificates with auto-renewal

PHASE 2: FILE GENERATION


Generate a well-organized Terraform project:

terraform/
  environments/
    dev/
      terraform.tfvars
      backend.tf
    staging/
      terraform.tfvars
      backend.tf
    prod/
      terraform.tfvars
      backend.tf
  modules/
    networking/
      main.tf
      variables.tf
      outputs.tf
    compute/
      main.tf
      variables.tf
      outputs.tf
    database/
      main.tf
      variables.tf
      outputs.tf
    cache/
      main.tf
      variables.tf
      outputs.tf
    cdn/
      main.tf
      variables.tf
      outputs.tf
    monitoring/
      main.tf
      variables.tf
      outputs.tf
    dns/
      main.tf
      variables.tf
      outputs.tf
    security/
      main.tf
      variables.tf
      outputs.tf
  main.tf
  variables.tf
  outputs.tf
  providers.tf
  versions.tf

Only create modules that are needed for the requested architecture. Do not generate unused modules.

TERRAFORM CONVENTIONS:

  • Use Terraform >= 1.5 syntax.
  • Pin provider versions (e.g., aws ~> 5.0).
  • Use modules for logical grouping — never put everything in one file.
  • Every module must have variables.tf, outputs.tf, and main.tf.
  • Use descriptive resource names: aws_ecs_service.api, not aws_ecs_service.this.
  • Use locals for computed values and repeated expressions.
  • Use data sources for existing resources (e.g., current account ID, available AZs).
  • Tag every resource with: Name, Environment, Project, ManagedBy=terraform.
  • Use variable validation blocks for inputs that have constraints.
  • Use lifecycle blocks where appropriate (prevent_destroy on databases, ignore changes on auto-scaled resources).

PHASE 3: SECURITY HARDENING


SECURITY RULES:

  • Never hardcode secrets, passwords, or API keys in .tf files.
  • Use aws_secretsmanager_secret or variable references for sensitive values.
  • Mark sensitive variables with sensitive = true.
  • Security groups: default deny. Only open what is explicitly needed.
  • No public subnets for databases or caches — private subnets only.
  • Enable encryption at rest for RDS, ElastiCache, S3, EBS.
  • Enable encryption in transit (TLS/SSL) everywhere.
  • IAM roles with least-privilege policies — no wildcards on actions or resources.
  • Enable VPC flow logs.
  • Enable CloudTrail if not already present.

PHASE 4: SCALABILITY & HA PATTERNS


SCALABILITY PATTERNS:

When the architecture requires scalability, implement these patterns:

Auto-scaling:

  • ECS service auto-scaling with target tracking (CPU/memory).
  • RDS read replicas for read-heavy workloads.
  • ElastiCache cluster mode for Redis scaling.
  • Application Load Balancer with health checks.

High availability:

  • Multi-AZ deployments for RDS, ElastiCache, and ECS.
  • Cross-zone load balancing.
  • Route53 health checks with failover routing.

Cost optimization:

  • Use Fargate Spot for non-critical workloads.
  • RDS instance sizing with t3/t4g for dev, r6g for prod.
  • S3 lifecycle policies for log archival.
  • Reserved capacity recommendations as comments.

STATE MANAGEMENT:

Always include backend configuration for remote state:

For Terraform Cloud:

terraform {
  cloud {
    organization = var.tf_org
    workspaces {
      name = "${var.project}-${var.environment}"
    }
  }
}

For S3 backend (alternative):

terraform {
  backend "s3" {
    bucket         = "${var.project}-terraform-state"
    key            = "${var.environment}/terraform.tfstate"
    region         = "us-east-1"
    dynamodb_table = "${var.project}-terraform-locks"
    encrypt        = true
  }
}

Include the state bucket/DynamoDB bootstrap as a separate bootstrap/ directory if using S3.


PHASE 5: ENVIRONMENT DIFFERENTIATION


COMMON ARCHITECTURES:

Recognize and generate these common patterns:

Scalable API:
VPC → ALB → ECS Fargate → RDS + ElastiCache → CloudWatch

Static site + API:
CloudFront → S3 (static) + ALB → ECS Fargate → RDS

Event-driven:
API Gateway → Lambda → SQS/SNS → DynamoDB/RDS

Full-stack app:
Route53 → CloudFront → S3 + ALB → ECS Fargate → RDS + ElastiCache + S3 (uploads)

Use tfvars to differentiate environments:

  • dev: smaller instances, single AZ, no Multi-AZ, Fargate Spot
  • staging: production-like but smaller instances
  • prod: full Multi-AZ, larger instances, enhanced monitoring, deletion protection

PHASE 6: OUTPUT & DOCUMENTATION


OUTPUT:

AWS Infrastructure Summary

AspectDetails
Architecture pattern[e.g., Scalable API]
AWS region[e.g., us-east-1]
Environmentsdev, staging, prod
Modules generated[list]
Total .tf filesN
Estimated monthly cost (dev)$X
Estimated monthly cost (prod)$X

Files Generated

FilePurpose
terraform/main.tfRoot module composition
terraform/modules/networking/main.tfVPC, subnets, NAT
......

Variable Reference

VariableTypeDefaultDescription
............

Deployment Instructions

Step-by-step guide to apply (init, plan, apply) — but do NOT run these commands.

Architecture Diagram

ASCII diagram showing the component relationships.


SELF-EVOLUTION TELEMETRY


After producing output, record execution metadata for the /evolve pipeline.

Check if a project memory directory exists:

  • Look for the project path in ~/.claude/projects/
  • If found, append to skill-telemetry.md in that memory directory

Entry format:

### /aws — {{YYYY-MM-DD}}
- Outcome: {{SUCCESS | PARTIAL | FAILED}}
- Self-healed: {{yes — what was healed | no}}
- Iterations used: {{N}} / {{N max}}
- Bottleneck: {{phase that struggled or "none"}}
- Suggestion: {{one-line improvement idea for /evolve, or "none"}}

Only log if the memory directory exists. Skip silently if not found.
Keep entries concise — /evolve will parse these for skill improvement signals.


DO NOT


  • Do NOT run any terraform or aws CLI commands. File generation only.
  • Do NOT use deprecated Terraform syntax or provider resources.
  • Do NOT use placeholder values for non-sensitive config — use realistic defaults.
  • Do NOT omit files or write partial modules — every file must be complete.
  • Do NOT create untagged resources — every resource must have Name, Environment, Project, ManagedBy tags.

SELF-HEALING VALIDATION (max 2 iterations)


After completing deployment/infrastructure changes, validate:

  1. Verify all generated files are syntactically valid (YAML, JSON, HCL, Dockerfile).
  2. Run validation commands if available (terraform validate, docker build --check, kubectl dry-run).
  3. Verify no secrets, credentials, or sensitive values are hardcoded.
  4. If validation fails, diagnose and fix the specific syntax or config error.
  5. Repeat up to 2 iterations.

IF STILL FAILING after 2 iterations:

  • Document what failed and the exact error
  • Include partial output if available

NEXT STEPS


After delivering the Terraform files:

  • "Review the generated files, set your tfvars, then run terraform init && terraform plan to preview."
  • "Run /preflight to verify the project is ready before applying."
  • "Run /qa to test the application that will run on this infrastructure."
  • "Run /backend-spec to generate Jira stories for the application layer."
  • "Customize terraform.tfvars per environment before deploying."
This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

Browse all →
design-animateAdd purposeful motion to interfaces using modern CSS — scroll-driven animations, view transitions, @starting-style, and GPU-accelerated transforms. Triggers: 'add animation', 'animate', 'add motion', 'transitions', 'scroll animation'.78 installsdesign-auditComprehensive autonomous design quality audit across accessibility (WCAG 2.2), performance, theming, responsive/adaptive design, and anti-pattern detection. Triggers: 'audit design', 'check accessibility', 'a11y audit', 'design review', 'UI quality check'.61 installssecureFull-stack security posture assessment with 0-100 risk scoring. Scans dependency vulnerabilities (npm audit, pip-audit, cargo audit, govulncheck), dangerous code patterns (SQL injection, eval, command injection, ReDoS, innerHTML, XSS vectors), authentication gaps (missing auth middleware.56 installsdiagramGenerate Mermaid architecture diagrams from your codebase. Produces C4 context and container diagrams, sequence diagrams for key flows, ER diagrams from database schemas, and module dependency graphs. Use when you need architecture diagrams, system diagrams, database ERD, sequence diagrams, dependency visualization, or C4 model diagrams.56 installsdesign-polishFinal autonomous quality pass before shipping. Fixes alignment, spacing, consistency, typography hierarchy, color harmony, motion timing, and every micro-detail that separates good from great..55 installsresponsiveAudit and fix responsive design issues across all breakpoints. Scans for fixed widths that cause mobile overflow, missing media query variants, non-responsive images, undersized touch targets below 48px, unreadable typography, and horizontal scroll violations..49 installs

More from Skills Hub

View source →
security-reviewSecurity audit and vulnerability assessment for any codebase. Scans for authentication bypasses, missing auth middleware, broken JWT validation (algorithm confusion, weak secrets, missing expiry), OAuth state and PKCE flaws, IDOR and horizontal privilege escalation.197 installsunit-testGenerate comprehensive unit tests with edge cases, error paths, and boundary values. Triggers: you need to add unit tests, increase code coverage, test edge cases, or verify error handling paths.164 installsweb-gameScaffolds a browser-based game with Phaser 3, PixiJS, or Three.js including game loop, asset pipeline, responsive canvas, input handling, audio, save/load, and deployment to itch.io or web. Triggers: on: "web game", "browser game", "html5 game", "phaser game", "pixi game".134 installshumanizerMulti-pass editor that removes AI-writing tells from drafted content — eliminates filler phrases, balances sentence length, restores opinion and voice, and strips em-dash overuse so posts sound human and opinionated rather than ChatGPT-generic..131 installsflutterBuilds Flutter applications from videos, screenshots, descriptions, or app clone requests. Triggers on: flutter app, build a mobile app, replicate this app in Flutter, build from video, build from screenshots, clone this app, build an app, make an app like, recreate this UI.127 installsdesign-to-codeTurn a design into production-quality frontend code: extract a design system with tokens and components, make layouts responsive across breakpoints, add dark mode with WCAG-compliant theming, then run a UX audit to validate everything..124 installs

More Deploy skills

Browse category →
ci-cdSet up CI/CD pipelines — generates GitHub Actions, GitLab CI, or Bitbucket Pipelines with lint, test, build, deploy stages. Detects stack automatically.29 installsdockerDetect project stack and generate production-ready multi-stage Dockerfiles with compose services, .dockerignore, non-root users, health checks, layer caching, and optional dev hot-reload profiles11 installsapp-store-publishConfigure a complete iOS App Store publishing pipeline — sets up Fastlane with code signing (match), App Store Connect API key, TestFlight and release lanes, screenshot automation, metadata templates, review compliance checklist, and phased rollout. Use for any iOS or Flutter app ready to submit to the App Store.9 installsgithub-actionsDetect project stack and generate GitHub Actions CI/CD workflows — PR checks with lint/test/build/security, deploy pipelines for Vercel/AWS/GCP/Fly/Docker, dependency caching, matrix testing, preview deploys, and Dependabot config6 installsk8sGenerate production-grade Kubernetes manifests — Deployments with probes and security contexts, Services, Ingress with TLS, HPA, PDB, NetworkPolicy, ConfigMaps, Secrets — with optional Helm charts, Kustomize overlays, Istio mesh, and ArgoCD GitOps5 installsplay-store-publishConfigure the complete Google Play Store publishing pipeline — upload key generation, AAB bundle optimization, Fastlane supply lanes for internal/beta/production tracks, staged rollout strategy, store listing metadata, data safety form guidance, and content rating preparation5 installs

Frequently asked questions about aws

What does the aws skill do?

Generates production-ready Terraform files for AWS infrastructure. Writes complete .tf files for any cloud architecture — no deployment, just file generation. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.

How do I install the aws skill?

Run `npx @skills-hub-ai/cli install aws` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/aws/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.

Which AI tools does aws work with?

aws runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.

Is the aws skill free?

Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.

How do I use aws after installing it?

In Claude Code, type `/aws` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.

Can I share the aws skill with my team?

Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.