-
Notifications
You must be signed in to change notification settings - Fork 69
feat(toolkit): add a return type for toolkit.destroy() #318
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
Conversation
`toolkit.deploy()` now returns information about the stacks it deployed.
Signed-off-by: github-actions <[email protected]>
`toolkit.deploy()` now returns information about the stacks it deployed.
`toolkit.destroy()` now returns information about the stacks it deployed.
74303d3 to
d7a7cb6
Compare
Signed-off-by: github-actions <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #318 +/- ##
==========================================
+ Coverage 85.49% 85.61% +0.11%
==========================================
Files 219 219
Lines 24103 24250 +147
Branches 2585 2585
==========================================
+ Hits 20607 20761 +154
+ Misses 3445 3437 -8
- Partials 51 52 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
71eb7ff to
e54e964
Compare
Signed-off-by: github-actions <[email protected]>
`toolkit.rollback()` now returns information about the stacks it rolled back. Includes some refactoring that deduplicates return information between deploy/destroy and rollback. Closes aws/aws-cdk#33188 --- By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license --------- Signed-off-by: github-actions <[email protected]> Co-authored-by: github-actions <[email protected]>
| export interface DeployedStack extends PhysicalStack { | ||
| /** | ||
| * Hierarchical identifier | ||
| * | ||
| * This uniquely identifies the stack inside the CDK app. | ||
| * | ||
| * In practice this will be the stack's construct path, but unfortunately the | ||
| * Cloud Assembly contract doesn't require or guarantee that. | ||
| */ | ||
| readonly hierarchicalId: string; | ||
|
|
||
| /** | ||
| * The outputs of the deployed CloudFormation stack | ||
| */ | ||
| readonly outputs: { [key: string]: string }; | ||
| } | ||
|
|
||
| /** | ||
| * An environment, which is an (account, region) pair | ||
| */ | ||
| export interface Environment { | ||
| /** | ||
| * The account number | ||
| */ | ||
| readonly account: string; | ||
|
|
||
| /** | ||
| * The region number | ||
| */ | ||
| readonly region: string; | ||
| } | ||
|
|
||
| /** | ||
| * Result interface for toolkit.deploy operation | ||
| */ | ||
| export interface DeployResult { | ||
| /** | ||
| * List of stacks deployed by this operation | ||
| */ | ||
| readonly stacks: DeployedStack[]; | ||
| } | ||
|
|
||
| /** | ||
| * Information about a deployed stack | ||
| */ | ||
| export interface DeployedStack extends PhysicalStack { |
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.
Looks like some stuff got repeated here, maybe because of an automerge issue?
toolkit.destroy()now returns information about the stacks it deployed.Closes aws/aws-cdk#33190
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license