aws-cloudformation

Validate CloudFormation templates with cfn-lint, cfn-guard, and change-set events.

Updated May 12, 2026
One-click install
npx skills add https://github.com/mreferre/aws-agent-toolkit-skills --skill aws-cloudformation-mreferre
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: aws-cloudformation
Source: https://github.com/mreferre/aws-agent-toolkit-skills/tree/main/.kiro/skills/aws-cloudformation
Command: npx skills add https://github.com/mreferre/aws-agent-toolkit-skills --skill aws-cloudformation-mreferre

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

It helps you author, validate, and troubleshoot AWS CloudFormation templates by catching common errors before deployment and diagnosing failed stacks with evidence from CloudFormation events and CloudTrail.

Core Features & Use Cases

  • Template authoring with secure defaults: Applies security-minded conventions (e.g., S3 public access blocking, encryption defaults, stateful retention policies) and safer naming patterns.
  • Layered pre-deployment validation: Runs syntax/schema checks, security/compliance checks, and change-set-based validation via describe-events to surface VALIDATION_ERRORs.
  • Root-cause troubleshooting for failed stacks: Identifies the first failure, distinguishes template-level vs environment-level causes, and correlates with CloudTrail within a tight time window.

Quick Start

Use the aws-cloudformation skill to validate your CloudFormation template and explain any pre-deployment validation failures with the exact fix needed.

Frequently Asked Questions about aws-cloudformation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I troubleshoot CloudFormation stack failures using CloudTrail?

Troubleshoot CloudFormation stack failures by identifying the first failure event and correlating it with CloudTrail logs within a tight time window. This distinguishes template-level versus environment-level causes to produce actionable remediation guidance for CREATE_FAILED and rollback states.

What is the best way to validate CloudFormation templates before deployment?

Validate CloudFormation templates before deployment by running cfn-lint for syntax and schema checks, cfn-guard for compliance, and change-set validation via describe-events. This layered readiness approach surfaces VALIDATION_ERRORs before execution.

How do I author CloudFormation templates with secure-by-default patterns?

Author CloudFormation templates with secure-by-default patterns by applying conventions like S3 public access blocking, encryption defaults, and stateful retention policies. This ensures safer naming and infrastructure as code compliance.

Why does my CloudFormation change set validation fail and how do I fix it?

Change set validation fails due to syntax, schema, or compliance errors caught by cfn-lint and cfn-guard, or VALIDATION_ERRORs from describe-events. Diagnose the exact pre-deployment failure to receive the specific template-level or environment-level fix needed.

Can I use cfn-lint and cfn-guard together for CloudFormation compliance checks?

Yes, use cfn-lint and cfn-guard together for layered CloudFormation compliance checks. Run cfn-lint to validate syntax and schema, then apply cfn-guard rules to enforce security and compliance before executing CREATE or UPDATE change sets.