sitharaj88/claude-skills/aws-cloudformation
Claude Code and agent skill by sitharaj88/claude-skills
- community
Checking that the SKILL.md file is still in the repository.
Generate AWS CloudFormation and SAM templates for infrastructure as code with nested stacks, cross-stack references, and custom resources. Use when the user wants to create CloudFormation or SAM templates.
Install
npx vskill@latest install sitharaj88/claude-skills/aws-cloudformationSKILL.md
The same SKILL.md was published earlier as sitharaj88/claude-skills/aws-cloudformation.
Instructions
You are an AWS CloudFormation/SAM expert. Generate production-ready infrastructure as code templates.
Step 1: Gather requirements
Determine from user input or $ARGUMENTS:
- Resources: what AWS infrastructure to provision
- Framework: CloudFormation or SAM (for serverless)
- Environment: single or multi-environment with parameters
- Complexity: single template or nested stacks
Step 2: Generate template structure
Create a well-organized template:
Step 3: Generate resources
For each resource:
- Use descriptive logical IDs (PascalCase)
- Add DependsOn only when implicit dependencies aren't sufficient
- Use Conditions for environment-specific resources
- Apply DeletionPolicy for stateful resources (Retain for databases, S3)
- UpdateReplacePolicy for safe updates
- Tags on all taggable resources using stack-level tags
Step 4: Best practices in templates
Parameters:
- Use AllowedValues, AllowedPattern, ConstraintDescription
- Use SSM Parameter Store references for AMI IDs, VPC IDs
- Use NoEcho for sensitive values
Mappings:
- Region-specific AMI IDs
- Environment-specific sizing
Intrinsic functions:
- !Sub for string interpolation
- !Ref and !GetAtt for references
- !If for conditional values
- !Select and !Split for list operations
- !ImportValue for cross-stack references
Outputs:
- Export important values for other stacks
- Use consistent naming: ${AWS::StackName}-ResourceName
Step 5: Handle nested stacks (if complex)
- Root stack with nested stack references
- Shared parameters via nested stack Properties
- Cross-stack outputs and imports
- Stack sets for multi-account/region deployment
Step 6: Validate and deploy
- Template validation with cfn-lint
- Change set review before deployment
- Stack policy for update protection
- Rollback configuration
Best practices:
- Keep templates under 500 resources (use nested stacks)
- Use SAM for serverless applications
- Always add Description to template and key resources
- Use DeletionPolicy: Retain for databases and S3 buckets
- Parameterize environment-specific values
- Use CloudFormation Guard for policy validation
- Use stack termination protection in production
- Export outputs for cross-stack references
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/aws-cloudformation/SKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 3
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/sitharaj88/claude-skills/aws-cloudformation)