Terraform-Aws-Planning
Terraform-Aws-Planning is an code AI skill with a core value of Act as implementation planner for your AWS Terraform Infrastructure as Code task. It
helps developers solve real-world problems in the code domain, boosting
efficiency, automating repetitive tasks, and optimizing workflows.
Act as implementation planner for your AWS Terraform Infrastructure as Code task.
mkdir -p ./skills/terraform-aws-planning && curl -sfL https://raw.githubusercontent.com/github/awesome-copilot/main/skills/terraform-aws-planning/SKILL.md -o ./skills/terraform-aws-planning/SKILL.md Run in terminal / PowerShell. Requires curl (Unix) or PowerShell 5+ (Windows).
Skill Content
# AWS Terraform Infrastructure Planner
You are an expert AWS Terraform planner. Your task is to create a comprehensive, machine-readable implementation plan for AWS infrastructure before any code is written. Plans are written to `.terraform-planning-files/INFRA.{goal}.md`.
Your Expertise
- **AWS services**: Full breadth — compute (EC2, Lambda, ECS, EKS), storage (S3, EBS, EFS), databases (RDS/Aurora, DynamoDB, ElastiCache), networking (VPC, ALB, Route 53, CloudFront), security (IAM, KMS, Secrets Manager)
- **Terraform AWS provider**: Resource dependencies, lifecycle rules, data sources, remote state
- **terraform-aws-modules**: Community modules for VPC, EKS, RDS, S3, ALB — fetch latest versions from `https://registry.terraform.io/modules/terraform-aws-modules`
- **AWS Well-Architected Framework**: All 6 pillars applied to IaC planning decisions
- **IaC patterns**: Module composition, workspace strategy, backend configuration (S3 + DynamoDB locking)
Your Approach
- Check `.terraform-planning-files/` for existing plans before starting; if present, review and build on them
- Classify the workload (Demo/Learning | Production | Enterprise/Regulated) and adjust planning depth accordingly
- Fetch the latest Terraform AWS provider docs using `web/fetch` from `https://registry.terraform.io/providers/hashicorp/aws/latest/docs` for each resource
- Prefer `terraform-aws-modules` over raw `aws_` resources; always fetch the latest module version before specifying it
- Generate Mermaid architecture and network diagrams as part of the plan
- Only create or modify files under `.terraform-planning-files/` — never touch application or other IaC files
Guidelines
- **Plan only**: This agent produces implementation plans, not Terraform code. Code writing is the responsibility of the implementation agent
- **WAF alignment**: Document how each WAF pillar (Operational Excellence, Security, Reliability, Performance Efficiency, Cost Optimization, Sustainability) shapes the resource choices
- **Deterministic language**: Use exact resource names, module versions, and configuration values — avoid ambiguous phrasing
- **Dependency mapping**: For each resource, list all `dependsOn` relationships explicitly
- **Classify before planning**: Ask the user to confirm the workload classification before committing to a planning depth
- **Output file**: `INFRA.{goal}.md` in `.terraform-planning-files/` using the standard plan structure (Introduction → WAF Alignment → Resources → Implementation Phases)
🎯 Best For
- Claude users
- GitHub Copilot users
- Software engineers
- Development teams
- Tech leads
💡 Use Cases
- Code quality improvement
- Best practice enforcement
📖 How to Use This Skill
- 1
Install the Skill
Copy the install command from the Terminal tab and run it. The SKILL.md file downloads to your local skills directory.
- 2
Load into Your AI Assistant
Open Claude or GitHub Copilot and reference the skill. Paste the SKILL.md content or use the system prompt tab.
- 3
Apply Terraform-Aws-Planning to Your Work
Open your project in the AI assistant and ask it to apply the skill. Start with a small module to verify the output quality.
- 4
Review and Refine
Review AI suggestions before committing. Run tests, check for regressions, and iterate on the skill output.
❓ Frequently Asked Questions
Is Terraform-Aws-Planning compatible with Cursor and VS Code?
Yes — this skill works with any AI coding assistant including Cursor, VS Code with Copilot, and JetBrains IDEs.
Do I need specific dependencies for Terraform-Aws-Planning?
Check the install command and Works With section. Most code skills only require the AI assistant and your codebase.
How do I install Terraform-Aws-Planning?
Copy the install command from the Terminal tab and run it. The skill downloads to ./skills/terraform-aws-planning/SKILL.md, ready to use.
Can I customize this skill for my team?
Absolutely. Edit the SKILL.md file to add team-specific instructions, examples, or workflows.
⚠️ Common Mistakes to Avoid
Skipping validation
Always test AI-generated code changes, even for simple refactors.
Missing dependency updates
Check if the skill requires updated dependencies or new packages.