feat(toolkit-lib): bootstrap action#63
Conversation
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.
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.
Added userEnvironmentSpecs, which, when empty, will select all environments from all stacks (like deploy).
There was a problem hiding this comment.
In the new interface, the function must be called with either environments or cx.
There was a problem hiding this comment.
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 for #192.
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