Catch deploy-time CloudFormation failures at synth time: a Rego rule pack for constraints that resource schemas miss, injected into the AWS CDK built-in validator
// momentum
// why it's here
- Active: last commit today
- Health 96/100 with only 10 stars
- 10 releases in the last 90 days
- 13 open issues handled by one or two people
// how to help
// readme
Some CloudFormation constraints are not expressed in resource provider schemas โ they live only in documentation, in service API validation, or across multiple properties. Templates that violate them pass cdk synth, pass CloudFormation pre-deployment validation, and then fail minutes into a deployment, burning a rollback cycle.
cdk-preflight is a curated Rego rule pack for exactly those constraints, evaluated with the CloudFormation validation engine that ships inside aws-cdk-lib (>= 2.267.0). By default a violation fails cdk synth โ a template that is known to fail at deploy time never leaves your machine.