-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(toolkit): rollback implementation and tests #33074
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #33074 +/- ##
=======================================
Coverage 81.52% 81.52%
=======================================
Files 224 224
Lines 13762 13762
Branches 2414 2414
=======================================
Hits 11220 11220
Misses 2270 2270
Partials 272 272
Flags with carried forward coverage won't be shown. Click here to find out more.
|
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
const result = await deployments.rollbackStack({ | ||
stack, | ||
roleArn: options.roleArn, | ||
toolkitStackName: options.toolkitStackName, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
toolkitStackName: options.toolkitStackName, | |
toolkitStackName: this.toolkitStackName, |
|
||
/** | ||
* Name of the toolkit stack to use/deploy | ||
* | ||
* @default CDKToolkit | ||
*/ | ||
readonly toolkitStackName?: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/** | |
* Name of the toolkit stack to use/deploy | |
* | |
* @default CDKToolkit | |
*/ | |
readonly toolkitStackName?: string; |
We have it on the toolkit
stack, | ||
roleArn: options.roleArn, | ||
toolkitStackName: options.toolkitStackName, | ||
force: options.force, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
force: options.force, | |
force: options.orphanFailedResources, |
|
||
/** | ||
* Whether to force the rollback or not | ||
* | ||
* @default false | ||
*/ | ||
readonly force?: boolean; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/** | |
* Whether to force the rollback or not | |
* | |
* @default false | |
*/ | |
readonly force?: boolean; |
should be the same as orphanFailedResources
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor changes
introduces rollback to the programatic toolkit, plus tests
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license