-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
fix(toolkit): support multiple toolkit stacks in the same environment #1427
Conversation
The --toolkit-stack-name option can be used to specify the name for the toolkit stack. However, since the the toolkit stack outputs had "Export"s, which must be unique within an environment, it was impossible to deploy multiple toolkit stacks. This change removes the "Export"s as they are actually not used or needed and also adds an integration test to verify that multiple toolkit stacks can be deployed into the same environment. `toolkitStackName` can also be specified in `cdk.json` or `~/.cdk.json`. Updated the toolkit documentation topic to describe this. Fixes #1416
af8f23d
to
a5ceee2
Compare
Toolkit integration tests passed:
|
packages/aws-cdk/integ-tests/test-cdk-multiple-toolkit-stacks.sh
Outdated
Show resolved
Hide resolved
Also - I don't know what the use-case is to have more than one bootstrap stack in a given account. But I also don't see why it should be forbidden. |
@RomainMuller wrote:
See #1416 |
Thanks so much for taking the time to contribute to the AWS CDK ❤️ We will shortly assign someone to review this pull request and help get it
|
In some situations it may be necessary to add
|
The
--toolkit-stack-name
option can be used to specify the name forthe toolkit stack. However, since the the toolkit stack outputs
had "Export"s, which must be unique within an environment, it was
impossible to deploy multiple toolkit stacks.
This change removes the "Export"s as they are actually not used or needed
and also adds an integration test to verify that multiple toolkit stacks
can be deployed into the same environment.
toolkitStackName
can also be specified incdk.json
or~/.cdk.json
.Updated the toolkit documentation topic to describe this.
Fixes #1416
Pull Request Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license.