cdk bootstrap in multi-tenant accounts
See original GitHub issueHi,
I am eager to implement CDK on a few new projects, but in the company who i work for we use a system of multi-tenant accounts where one account is shared by many teams and units and we divide the cost of resources using tags and names.
The command cdk bootstrap
creates a CloudFormation stack with an S3 busket, which name can be configured, but also exports two Outputs
( BucketName and BucketDomainName ) and CloudFormation Stack’s Outputs must be unique in the same account.
I saw that when the Outputs
are read actually it list all the Outputs
and get the ones that are the same name. I think that if the Outputs
where prefixed with the stack name the conflict can be avoided and work in the same way.
I would like to find a solution to this problem to start using CDK, and i am up to send a PR with changes to support this case.
Thanks
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (4 by maintainers)
Top GitHub Comments
PR: https://github.com/awslabs/aws-cdk/pull/1427
Okay, got it. So basically if we remove the exports from the toolkit stack, you will be able to use
--toolkit-stack-name
to specify a different toolkit stack name for each team, and they won’t conflict. Is that correct?