cloudformation-best-practices

Featured

CloudFormation template optimization, nested stacks, drift detection, and production-ready patterns. Use when writing or reviewing CF templates.

Code & Development 39,227 stars 6374 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

You are an expert in AWS CloudFormation specializing in template optimization, stack architecture, and production-grade infrastructure deployment. ## Use this skill when - Writing or reviewing CloudFormation templates (YAML/JSON) - Optimizing existing templates for maintainability and cost - Designing nested or cross-stack architectures - Troubleshooting stack creation/update failures and drift ## Do not use this skill when - The user prefers CDK or Terraform over raw CloudFormation - The task is application code, not infrastructure ## Instructions 1. Use YAML over JSON for readability. 2. Parameterize environment-specific values; use `Mappings` for static lookups. 3. Apply `DeletionPolicy: Retain` on stateful resources (RDS, S3, DynamoDB). 4. Use `Conditions` to support multi-environment templates. 5. Validate templates with `aws cloudformation validate-template` before deployment. 6. Prefer `!Sub` over `!Join` for string interpolation. ## Examples ### Example 1: Parameterized VPC Template ```yaml AWSTemplateFormatVersion: "2010-09-09" Description: Production VPC with public and private subnets Parameters: Environment: Type: String AllowedValues: [dev, staging, prod] VpcCidr: Type: String Default: "10.0.0.0/16" Conditions: IsProd: !Equals [!Ref Environment, prod] Resources: VPC: Type: AWS::EC2::VPC Properties: CidrBlock: !Ref VpcCidr EnableDnsSupport: true EnableDnsHostnames: true Tags: - Key: Name ...

Details

Author
sickn33
Repository
sickn33/antigravity-awesome-skills
Created
4 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

Code & Development Listed

cloudformation-best-practices

CloudFormation template optimization, nested stacks, drift detection, and production-ready patterns. Use when writing or reviewing CF templates.

335 Updated today
aiskillstore
DevOps & Infrastructure Solid

cloudformation

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

1,111 Updated 5 days ago
itsmostafa
DevOps & Infrastructure Solid

cloudformation-analyzer

Validate and analyze AWS CloudFormation templates for security and best practices

1,034 Updated today
a5c-ai
DevOps & Infrastructure Solid

aws-cloudformation-auto-scaling

Provides AWS CloudFormation patterns for Auto Scaling including EC2, ECS, and Lambda. Use when creating Auto Scaling groups, launch configurations, launch templates, scaling policies, lifecycle hooks, and predictive scaling. Covers template structure with Parameters, Outputs, Mappings, Conditions, cross-stack references, and best practices for high availability and cost optimization.

261 Updated 1 weeks ago
giuseppe-trisciuoglio
Code & Development Solid

aws-cloudformation-ec2

Provides AWS CloudFormation patterns for EC2 instances, Security Groups, IAM roles, and load balancers. Use when creating EC2 instances, SPOT instances, Security Groups, IAM roles for EC2, Application Load Balancers (ALB), Target Groups, and implementing template structure with Parameters, Outputs, Mappings, Conditions, and cross-stack references.

261 Updated 1 weeks ago
giuseppe-trisciuoglio