Tooluck logoTooluck
SKILL.md

cloudformation

Agent skill fromitsmostafa/aws-agent-skills

AWS CloudFormation infrastructure as code for stack management. Use when writing templates, deploying stacks, managing drift, troubleshooting deployments, or organizing infrastructure with nested stacks.

How to install cloudformation

install cloudformation
# install the aws-agent-skills pack with the skills CLI
npx skills add itsmostafa/aws-agent-skills

# or add only this skill to Claude Code: copy the folder

skills/cloudformation/

# into

~/.claude/skills/cloudformation/ (all projects)

.claude/skills/cloudformation/ (one project)

skills/cloudformation/SKILL.md

MITFull file
1# AWS CloudFormation
2
3AWS CloudFormation provisions and manages AWS resources using templates. Define infrastructure as code, version control it, and deploy consistently across environments.
4
5## Table of Contents
6
7- [Core Concepts](#core-concepts)
8- [Common Patterns](#common-patterns)
9- [CLI Reference](#cli-reference)
10- [Best Practices](#best-practices)
11- [Troubleshooting](#troubleshooting)
12- [References](#references)
13
14## Core Concepts
15
16### Templates
17
18JSON or YAML files defining AWS resources. Key sections:
19- **Parameters**: Input values
20- **Mappings**: Static lookup tables
21- **Conditions**: Conditional resource creation
22- **Resources**: AWS resources (required)
23- **Outputs**: Return values
24
25### Stacks
26
27Collection of resources managed as a single unit. Created from templates.
28
29### Change Sets
30
31Preview changes before executing updates.
32
33### Stack Sets
34
35Deploy stacks across multiple accounts and regions.
36
37## Common Patterns
38
39### Basic Template Structure
40
41```yaml
42AWSTemplateFormatVersion: '2010-09-09'
43Description: My infrastructure template
44
45Parameters:
46 Environment:
47 Type: String
48 AllowedValues: [dev, staging, prod]
49 Default: dev
50
51Mappings:
52 EnvironmentConfig:
53 dev:
54 InstanceType: t3.micro
55 prod:
56 InstanceType: t3.large
57
58Conditions:
59 IsProd: !Equals [!Ref Environment, prod]
60
61Resources:
62 MyBucket:
63 Type: AWS::S3::Bucket
64 Properties:
65 BucketName: !Sub 'my-app-${Environment}-${AWS::AccountId}'
66 VersioningConfiguration:
67…

Excerpt shown under the repository's MIT license.

More skills in aws-agent-skills

Keep exploring

Similar skill repositories

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates