cdk-insights previewDeployment preview
Compare against a reviewed template baseline. Replacement, deletion, exposure, encryption and stateful-resource changes contribute to a clear GO, REVIEW or BLOCK recommendation.
Local-first architecture review
CDK Insights can explain the shape, change risk, resilience and live drift of an estate before deployment. These tools use synthesized templates locally and consume no AI credits.
cdk-insights previewCompare against a reviewed template baseline. Replacement, deletion, exposure, encryption and stateful-resource changes contribute to a clear GO, REVIEW or BLOCK recommendation.
cdk-insights graphBuild a resource relationship graph and highlight dependency paths from public entry points to sensitive data services.
cdk-insights simulateReview Availability Zone resilience, dependency isolation, quota pressure and regional recovery assumptions without touching AWS.
cdk-insights policyEnforce required tags, forbidden resource types, public-entry limits and maximum deployment risk as version-controlled policy.
cdk-insights liveCompare cdk.out with the deployed CloudFormation template and existing drift results. The command never starts drift detection and never mutates AWS.
cdk-insights learnTurn a structured incident report into an auditable local custom rule plus a Markdown postmortem, keeping incident data on your machine.
Save a known-good baseline once, then reuse the same synthesized assembly across each guard to avoid repeated CDK synthesis.
npx cdk-insights preview --write-baseline
# In CI after cdk synth
npx cdk-insights preview --no-synth --fail-on review
npx cdk-insights policy --no-synth
npx cdk-insights simulate --no-synth --fail-on highUse a read-only profile. CDK Insights calls GetTemplate, DescribeStacks and DescribeStackResourceDrifts only.
npx cdk-insights live --stack-name ProductionStack --profile auditRun cdk-insights mcp to expose architecture, reliability, documentation and plan-advisor tools to compatible editors and assistants.
For native diagnostics, generate SARIF and open it in your editor's SARIF viewer.
Use cdk-insights document --file docs/architecture.md to keep a reviewable Mermaid diagram beside the code that produced it.