CI Perf Lint

prefer-cdk-express-mode-in-development

Detects development and sandbox CDK deploy commands that omit CloudFormation express mode (--express), and flags older aws-cdk CLI pins that predate the flag.

Why it matters

CloudFormation express mode reports a stack operation as complete as soon as CloudFormation applies the resource configuration. It does not wait for stabilization, traffic readiness, region propagation, or resource cleanup. AWS measures up to 4x faster deployments for the operation types that dominate development iteration, such as CloudFront distributions, VPC-attached Lambda functions, and ALB/ECS services.

Express mode is designed for iterative development deployments. AWS does not recommend it for production, and it disables automatic rollback by default. This rule therefore only reports development-scoped CDK deploys.

What it flags

A development context is a job environment named for development, sandbox, or preview, or a workflow triggered by pull_request. Manually dispatched (workflow_dispatch) workflows are out of scope, because a manual trigger does not prove a development target.

The rule stays silent for:

Suggested action

Verification

Compare the CDK deploy step wall-clock duration and CloudFormation stack event times before and after enabling express mode, and confirm the target is a development environment where automatic rollback is not required.

Compatibility notes