aws-deployment-preflight

Validate AWS CDK and CloudFormation templates before deployment.

1|Updated Jun 24, 2026
One-click install
npx skills add https://github.com/eric-sabe/engsys --skill aws-deployment-preflight
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: aws-deployment-preflight
Source: https://github.com/eric-sabe/engsys/tree/main/stacks/cloud/aws/skills/aws-deployment-preflight
Command: npx skills add https://github.com/eric-sabe/engsys --skill aws-deployment-preflight

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill eliminates costly, time-consuming failed AWS infrastructure deployments by catching template errors, stale failed stacks, naming conflicts, and quota limits before you trigger a deploy, saving CI minutes and avoiding production outages from incomplete deployments.

Core Features & Use Cases

  • Template Validation: Validates CDK (via synth, diff) and raw CloudFormation (via validate-template, cfn-lint, change sets) templates locally to catch structural, property, and IAM issues pre-deploy.
  • Stale Stack Cleanup: Identifies and removes stacks stuck in ROLLBACK_COMPLETE or CREATE_FAILED states that block re-deployment, including guidance for handling resources that block deletion.
  • Pre-Deploy Risk Checks: Detects globally unique resource naming conflicts (S3, ECR, IAM, etc.) and verifies service quota headroom to avoid late-stage deploy failures.
  • Use Case: If your team’s CDK deploys regularly fail with ROLLBACK_COMPLETE errors or quota limit exceptions, this Skill will run all required pre-checks in sequence and report exactly what needs to be fixed before you push changes.

Quick Start

Use the aws-deployment-preflight skill to run all pre-deployment validation checks for your AWS CDK or CloudFormation template and get a clear go/no-go recommendation before triggering your deploy.

Frequently Asked Questions about aws-deployment-preflight

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

FAQPage Schema
How do I prevent AWS CDK deployment failures caused by ROLLBACK_COMPLETE states?

You can prevent AWS CDK deployment failures by running preflight checks that identify and clean up stale stacks stuck in ROLLBACK_COMPLETE or CREATE_FAILED states, removing blockages before triggering a re-deploy. This includes guidance for handling resources that block deletion.

What is the best way to validate CloudFormation templates locally before deploying?

The best way to validate CloudFormation templates locally is running preflight checks using cfn-lint, cdk synth, and cdk diff. This process catches structural, property, and IAM issues pre-deploy, providing a clear go/no-go recommendation before pushing changes.

Why does my AWS deployment fail with globally unique resource naming conflicts?

Your AWS deployment fails because globally unique resource naming conflicts occur when S3, ECR, or IAM resources share names with existing resources. Preflight checks detect these conflicts and service quota limits early to avoid late-stage deploy failures.

Can I check AWS service quota headroom before running a CDK deploy?

Yes, you can check AWS service quota headroom before running a CDK deploy. Preflight risk checks verify service quota limits and detect globally unique naming conflicts, preventing incomplete production deployments and saving CI minutes.

How do I clean up stale AWS stacks that block CDK re-deployment?

To clean up stale AWS stacks blocking CDK re-deployment, run preflight checks that identify stacks in ROLLBACK_COMPLETE or CREATE_FAILED states. The checks remove them via AWS CLI and provide guidance for handling resources that block deletion.

Does preflight validation work with both raw CloudFormation and CDK projects?

Yes, preflight validation works with both raw CloudFormation and CDK projects. It validates CDK via synth and diff, raw CloudFormation via validate-template and cfn-lint, and uses change sets to catch template errors before you trigger a deploy.