What is `cdk diff`, and why run it in CI?
IntermediateConceptIaC & AWS developer tools (CDK, CodePipeline)
Answer
cdk diff compares your current code with the deployed stack and shows which resources will be added, changed or replaced, including IAM and security group changes. Posting it on pull requests gives reviewers a clear view of infrastructure impact, like a Terraform plan.