Skip to content

feat(cli): --revert-drift option to bring actual resource states in line with template definitions#1127

Merged
mrgrain merged 10 commits intoaws:mainfrom
aki-kii:feat(deployment)/drift-aware-change-sets
Mar 6, 2026
Merged

feat(cli): --revert-drift option to bring actual resource states in line with template definitions#1127
mrgrain merged 10 commits intoaws:mainfrom
aki-kii:feat(deployment)/drift-aware-change-sets

Conversation

@aki-kii
Copy link
Copy Markdown
Contributor

@aki-kii aki-kii commented Feb 10, 2026

Adds a new --revert-drift option to deploy command so that when provided, Create a Drift-aware Change set to align the actual resource state with the template definition.

Fixes: aws/aws-cdk/issues/36347


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@github-actions github-actions bot added the p2 label Feb 10, 2026
@aws-cdk-automation aws-cdk-automation requested a review from a team February 10, 2026 05:30
@aki-kii aki-kii changed the title feat(deployment): --revert-drift option to brings actual resource states in line with template definitions feat(cli): --revert-drift option to brings actual resource states in line with template definitions Feb 10, 2026
auto-merge was automatically disabled March 4, 2026 23:32

Head branch was pushed to by a user without write access

@aki-kii aki-kii temporarily deployed to integ-approval March 6, 2026 03:31 — with GitHub Actions Inactive
@mrgrain mrgrain changed the title feat(cli): --revert-drift option to brings actual resource states in line with template definitions feat(cli): --revert-drift option to bring actual resource states in line with template definitions Mar 6, 2026
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Mar 6, 2026

Codecov Report

❌ Patch coverage is 28.57143% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 87.74%. Comparing base (b042083) to head (8ea54b1).
⚠️ Report is 24 commits behind head on main.

Files with missing lines Patch % Lines
packages/aws-cdk/lib/cli/cli.ts 16.66% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1127      +/-   ##
==========================================
- Coverage   87.79%   87.74%   -0.05%     
==========================================
  Files          72       72              
  Lines       10148    10155       +7     
  Branches     1339     1339              
==========================================
+ Hits         8909     8911       +2     
- Misses       1215     1220       +5     
  Partials       24       24              
Flag Coverage Δ
suite.unit 87.74% <28.57%> (-0.05%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@mrgrain mrgrain added this pull request to the merge queue Mar 6, 2026
Merged via the queue into aws:main with commit 693fe48 Mar 6, 2026
46 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support Drift-Aware Change Sets

3 participants