Compares deployed CloudFormation templates with locally synthesized CDK templates to detect drift, validate changes, and ensure consistency before deployment. Use when the user wants to compare CDK output with a deployed stack, check for infrastructure drift, run a pre-deployment validation, audit IAM or security changes, investigate a failing deployment, or perform a 'cdk diff'-style review. Triggered by phrases like 'compare templates', 'check for drift', 'cfn drift', 'stack comparison', 'infrastructure drift detection', 'safe to deploy', or 'what changed in my CDK stack'.
Does it follow best practices?
Evaluation — 100%
↑ 1.09xAgent success when using this tile
Validation for skill structure
Before executing a CloudFormation template comparison for the lct-monitoring-at-stack in eu-west-1 region using the prod-ops AWS profile, you need to verify that all prerequisites are met. Past comparison attempts have failed due to invalid credentials, non-existent stacks, and missing environment variables needed for CDK synthesis.
Your task is to create a comprehensive pre-flight check script that validates all prerequisites before attempting the actual comparison.
Create a bash script preflight-checks.sh that:
The script should include:
Also create a file error-recovery.md that documents: