aws-cloudformation

Author, validate, and troubleshoot CloudFormation templates with cfn-lint and cfn-guard.

2.3k|234|Updated Apr 23, 2026
One-click install
npx skills add https://github.com/aws/agent-toolkit-for-aws --skill aws-cloudformation-aws
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: aws-cloudformation
Source: https://github.com/aws/agent-toolkit-for-aws/tree/main/plugins/aws-core/skills/aws-cloudformation
Command: npx skills add https://github.com/aws/agent-toolkit-for-aws --skill aws-cloudformation-aws

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

CloudFormation templates are error-prone and hard to secure and validate across deployment stages. This skill provides expert guidance to author, validate, and diagnose CloudFormation templates to prevent failures and security issues.

Core Features & Use Cases

  • Author templates following best practices, including parameters, mappings, resources, and policies.
  • Validate templates before deployment using cfn-lint, cfn-guard, and pre-deploy checks.
  • Troubleshoot failed deployments using structured event analysis and CloudTrail correlation to surface root causes.

Quick Start

Provide a CloudFormation template to analyze and receive authoring, validation, and troubleshooting guidance.

Frequently Asked Questions about aws-cloudformation

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

FAQPage Schema
How do I validate CloudFormation templates before deployment?

Validate CloudFormation templates using cfn-lint for best practice checks and cfn-guard for security policy enforcement. This pre-deployment validation identifies configuration errors and policy violations in your YAML or JSON templates before they reach production.

Why does my CloudFormation deployment fail and how do I troubleshoot it?

Troubleshoot CloudFormation deployment failures by performing structured event analysis using describe-events and correlating findings with CloudTrail logs. This method surfaces the root causes of stack creation or update errors across your development, testing, and production environments.

What is the best way to author secure CloudFormation templates?

Author secure CloudFormation templates by following best practices for parameters, mappings, resources, and policies while enforcing security with cfn-guard checks. This ensures your infrastructure-as-code is secure and validated across all deployment stages.

Does cfn-lint work with both YAML and JSON CloudFormation templates?

Yes, cfn-lint works with both YAML and JSON CloudFormation templates. It validates your infrastructure-as-code against best practices to prevent failures and security issues across development, testing, and production workloads.

Can I use cfn-guard to enforce compliance policies on infrastructure-as-code?

Yes, you can use cfn-guard to enforce compliance and security policies on your infrastructure-as-code. It validates CloudFormation templates against custom rules, preventing policy violations before pre-deployment checks fail.

What are the limitations of using CloudFormation for infrastructure-as-code?

CloudFormation templates can be error-prone and hard to secure without validation. Limitations include deployment failures from misconfigurations and security vulnerabilities, which require cfn-lint and cfn-guard checks to mitigate across deployment stages.