-
Notifications
You must be signed in to change notification settings - Fork 12
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
feat(toolkit-lib): bootstrap action #63
base: main
Are you sure you want to change the base?
Conversation
packages/@aws-cdk/toolkit-lib/lib/actions/bootstrap/private/helpers.ts
Outdated
Show resolved
Hide resolved
packages/@aws-cdk/toolkit-lib/lib/api/bootstrap/bootstrap-template.yaml
Outdated
Show resolved
Hide resolved
/** | ||
* Bootstrap Action | ||
*/ | ||
public async bootstrap(cx: ICloudAssemblySource, options: BootstrapEnvironmentOptions = {}): Promise<void> { |
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.
This action has a slightly different syntax. It's an environment based action that takes in a list of environment strings.
There is an option to read environments from a provided cx (see
defineEnvironments` in the current code). But I'm wondering if we should instead provide this as a helper function that can be called "outside".
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.
Added userEnvironmentSpecs
, which, when empty, will select all environments from all stacks (like deploy).
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.
In the new interface, the function must be called with either environments
or cx
.
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.
Just kidding, I created a new class called BootstrapEnvironments that takes in either a cx or list of envs.
d62ac6d
to
5d0f33d
Compare
Fixes aws/aws-cdk#33180. Typed return will be included in a follow-up PR.
Description:
Bootstrap Action for the CDK Toolkit.
Testing:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license