cloud-formation
/cloud-formation
Use when writing or managing AWS CloudFormation templates. Covers stack resources, parameters, outputs, intrinsic functions, nested stacks, and change sets. USE FOR: AWS stack provisioning, CloudFormation YAML/JSON templates, intrinsic functions, nested stacks, change sets DO NOT USE FOR: Azure infrastructure (use bicep or arm), multi-cloud infrastructure (use terraform or pulumi), Kubernetes resources (use kubernetes)
- Author
- Tyler-R-Kendrick ↗
- Repository
- agent-skills ↗
- Licence
- MIT
- Last repository change
- 09.06.2026
Assessment and security
- Files in this package
- 13
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 4
No signals detected. Repository changed on 09.06.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Use when writing or managing AWS CloudFormation templates. Covers stack resources, parameters, outputs, intrinsic functions, nested stacks, and change sets. USE FOR: AWS stack provisioning, CloudFormation YAML/JSON templates, intrinsic functions, nested stacks, change sets DO NOT USE FOR: Azure infrastructure (use bicep or arm), multi-cloud infrastructure (use terraform or pulumi), Kubernetes resources (use kubernetes)
Original author description
Use when writing or managing AWS CloudFormation templates. Covers stack resources, parameters, outputs, intrinsic functions, nested stacks, and change sets. USE FOR: AWS stack provisioning, CloudFormation YAML/JSON templates, intrinsic functions, nested stacks, change sets DO NOT USE FOR: Azure infrastructure (use bicep or arm), multi-cloud infrastructure (use terraform or pulumi), Kubernetes resources (use kubernetes)
How it works
- Overview
- Template Structure
- Key Intrinsic Functions
- Stack Operations
- Nested Stacks
- Best Practices
SKILL.md preview
---
name: cloud-formation
description: |
Use when writing or managing AWS CloudFormation templates. Covers stack resources, parameters, outputs, intrinsic functions, nested stacks, and change sets.
USE FOR: AWS stack provisioning, CloudFormation YAML/JSON templates, intrinsic functions, nested stacks, change sets
DO NOT USE FOR: Azure infrastructure (use bicep or arm), multi-cloud infrastructure (use terraform or pulumi), Kubernetes resources (use kubernetes)
license: MIT
metadata:
displayName: "AWS CloudFormation"
author: "Tyler-R-Kendrick"
compatibility: claude, copilot, cursor
references:
- title: "AWS CloudFormation Documentation"
url: "https://docs.aws.amazon.com/cloudformation/"
- title: "AWS CloudFormation Resource and Property Types Reference"
url: "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html"
---
# AWS CloudFormation
## Overview
CloudFormation is AWS's native IaC service for provisioning and managing AWS resources declaratively using JSON or YAML templates. Stacks are the unit of deployment — create, update, or delete all resources as a single unit.
## Template Structure
```yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: "My application stack"
Parameters:
Environment:
Type: String
Default: dev
AllowedValues: [dev, staging, prod]
InstanceType:
Type: String
Default: t3.micro
Resources:
WebServer:
Type: AWS::EC2::Instance
Properties:
InstanceType: !Ref InstanceType
ImageId: ami-0abcdef1234567890
Tags:
- Key: Environment
Value: !Ref Environment
WebBucket:
Type: AWS::S3::Bucket
Properties:
BucketName: !Sub "${AWS::StackName}-assets-${Environment}"
Outputs:
InstanceId:
Value: !Ref WebServer
Export:
Name: !Sub "${AWS::StackName}-InstanceId"
BucketArn:
Value: !GetAtt WebBucket.Arn
```
## Key Intrinsic Functions
| Function | Usage |
|----------|-------|
| `!Ref` | Reference a parameter or resource |
| `!Sub` | String substitution with variables |
| `!GetAtt` | Get an attribute of a resource |
| `!Join` | Join strings with a delimiter |
| `!Select` | Select from a list by index |
| `!If` | Conditional value |
| `!ImportValue` | Import from another stack's outputs |
## Stack Operations
```bash
# Create a stack
aws cloudformation create-stack \
--stack-name my-app \
--template-body file://template.yaml \
--parameters ParameterKey=Environment,ParameterValue=prod
# Preview changes
aws cloudformation create-change-set \
--stack-name my-app \
--change-set-name my-changes \
--template-body file://template.yaml
# Update a stack
aws cloudformation update-stack \
--stack-name my-app \
--template-body file://template.yaml
# Delete a stack
aws cloudformation delete-stack --stack-name my-app
```
## Nested Stacks
Break large templates into reusable components:
```yaml
Resources:
NetworkStack:
Type: AWS::CloudFormation::Stack
Properties:
TemplateURL: https://s3.amazonaws.com/my-bucket/network.yaml
Parameters:
VpcCidr: "10.0.0.0/16"
AppStack:
Type: AWS::CloudFormation::Stack
DependsOn: NetworkStack
Properties:
TemplateURL: https://s3.amazonaws.com/my-bucket/app.yaml
Parameters:
VpcId: !GetAtt NetworkStack.Outputs.VpcId
```
## Best Practices
- Always use change sets to preview updates before applying.
- Use parameters and conditions to make templates reusable across environments.
- Enable termination protection on production stacks.
- Use `DependsOn` only when CloudFormation can't infer dependencies automatically.
- Export outputs for cross-stack references instead of hardcoding values.
- Use `DeletionPolicy: Retain` on stateful resources (databases, S3 buckets).
- Validate templates before deploying: `aws cloudformation validate-template`.
Files in this package (13)
- AGENTS.md 3 KB
- README.md 1 KB
- SKILL.md 4 KB
- metadata.json 1 KB
- rules/_sections.md 2 KB
- rules/_template.md 1 KB
- rules/cloud-formation-always-use-change-sets-to-preview-updates-before-applying.md 1 KB
- rules/cloud-formation-enable-termination-protection-on-production-stacks.md 1 KB
- rules/cloud-formation-export-outputs-for-cross-stack-references-instead-of.md 1 KB
- rules/cloud-formation-use-deletionpolicy.md 1 KB
- rules/cloud-formation-use-dependson-only-when-cloudformation-can-t-infer.md 1 KB
- rules/cloud-formation-use-parameters-and-conditions-to-make-templates-reusable.md 1 KB
- rules/cloud-formation-validate-templates-before-deploying.md 1 KB
Versions
The database has no other skills named cloud-formation.
Database snapshot: 13.11.2026 · package version a32a8548fe4e (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100cloudformation
Deploy AWS resources with CloudFormation templates. Create stacks, use nested stacks, and implement drift detection. Use when deploying AWS-native IaC. - 100cloudformation
Deploy AWS resources with CloudFormation templates. Create stacks, use nested stacks, and implement drift detection. Use when deploying AWS-native IaC. - 100cloudformation
Deploy AWS resources with CloudFormation templates. Create stacks, use nested stacks, and implement drift detection. Use when deploying AWS-native IaC. - 100aws-cloudformation-templates
Authors and safely operates AWS CloudFormation templates (YAML/JSON), including stacks, change sets, nested and cross-stack references, StackSets for multi-account/multi-region deployment, and drift detection. Use when the user asks to "write a CloudFormation template for X,"… - 100bicep
Use when writing Azure Bicep templates for infrastructure deployment. Covers resource declarations, modules, parameters, outputs, and deployment commands. USE FOR: Azure resource deployment, Bicep DSL modules, what-if previews, Azure-native IaC DO NOT USE FOR: AWS resources (use… - 100stack-designer
Designs CloudFormation stack structure, nested stacks, and resource organization. Use when designing CloudFormation infrastructure, organizing resources into stacks, or planning nested stack hierarchies.