question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

cdk bootstrap in multi-tenant accounts

See original GitHub issue

Hi,

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:closed
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
eladbcommented, Dec 24, 2018
1reaction
eladbcommented, Dec 24, 2018

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?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bootstrapping multiple AWS accounts for AWS CDK using ...
The AWS CDK makes it easy to deploy an application to the AWS Cloud. But first you must “bootstrap” the target AWS account....
Read more >
AWS CDK deployment for multiple tenants - Stack Overflow
Create a stack for your production environment, and a separate one for each of your other stages, and put the configuration values for...
Read more >
Marco Buss on LinkedIn: Bootstrapping multiple AWS accounts for ...
In this post, you'll learn how to bootstrap many #AWS accounts in an automated and consistent manner using #CloudFormation #StackSets. #AWSBlog #DevOps.
Read more >
Multi Environment Deployments using AWS CDK - YouTube
This video explains the process of deploying AWS CDK projects to multiple environments either in single AWS account or separate AWS accounts ......
Read more >
EKS Blueprints for CDK Workshop
In this workshop, you will learn how to leverage the EKS Blueprints for CDK to build and deploy a multi-tenant container platform on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found