itsmostafa/aws-agent-skills/cloudformation
- community
Checking that the SKILL.md file is still in the repository.
AWS CloudFormation infrastructure as code for stack management. Use when writing templates, deploying stacks, managing drift, troubleshooting deployments, or organizing infrastructure with nested stacks.
Install
npx vskill@latest install itsmostafa/aws-agent-skills/cloudformationSKILL.md
AWS CloudFormation
AWS CloudFormation provisions and manages AWS resources using templates. Define infrastructure as code, version control it, and deploy consistently across environments.
Table of Contents
Core Concepts
Templates
JSON or YAML files defining AWS resources. Key sections:
- Parameters: Input values
- Mappings: Static lookup tables
- Conditions: Conditional resource creation
- Resources: AWS resources (required)
- Outputs: Return values
Stacks
Collection of resources managed as a single unit. Created from templates.
Change Sets
Preview changes before executing updates.
Stack Sets
Deploy stacks across multiple accounts and regions.
Common Patterns
Basic Template Structure
Deploy a Stack
AWS CLI:
Use Change Sets
Lambda Function
VPC with Subnets
DynamoDB Table
CLI Reference
Stack Operations
| Command | Description | |
|---|---|---|
aws cloudformation create-stack | Create stack | |
aws cloudformation update-stack | Update stack | |
aws cloudformation delete-stack | Delete stack | |
aws cloudformation describe-stacks | Get stack info | |
aws cloudformation list-stacks | List stacks | |
aws cloudformation describe-stack-events | Get events | |
aws cloudformation describe-stack-resources | Get resources |
Change Sets
| Command | Description | |
|---|---|---|
aws cloudformation create-change-set | Create change set | |
aws cloudformation describe-change-set | View changes | |
aws cloudformation execute-change-set | Apply changes | |
aws cloudformation delete-change-set | Delete change set |
Template
| Command | Description | |
|---|---|---|
aws cloudformation validate-template | Validate template | |
aws cloudformation get-template | Get stack template | |
aws cloudformation get-template-summary | Get template info |
Best Practices
Template Design
- Use parameters for environment-specific values
- Use mappings for static lookup tables
- Use conditions for optional resources
- Export outputs for cross-stack references
- Add descriptions to parameters and outputs
Security
- Use IAM roles instead of access keys
- Enable termination protection for production
- Use stack policies to protect resources
- Never hardcode secrets — use Secrets Manager
Organization
- Use nested stacks for complex infrastructure
- Create reusable modules
- Version control templates
- Use consistent naming conventions
Reliability
- Use DependsOn for explicit dependencies
- Configure creation policies for instances
- Use update policies for Auto Scaling groups
- Implement rollback triggers
Troubleshooting
Stack Creation Failed
Stack Stuck in DELETE_FAILED
Drift Detection
Rollback Failed
References
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/cloudformation/SKILL.md
Popularity
- Repository stars
- 1,050
- Repository forks
- 437
- 7-day trend score
- 35
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 22 Mar 2026, 7 months ago.
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/itsmostafa/aws-agent-skills/cloudformation)