Make the CLI experience of multi-account CDK apps awesome
See original GitHub issueAfter all of the issues/PRs for cross-account CodePipelines are delivered (#3208, #3323 , #3387, #3388, #3389 ), we will have a great story for making it very easy to work with cross-account CodePipelines.
However, we also need to make it easy to work with cross-account CDK apps from the perspective of authentication from the command line. Most likely, this will involve a deeper integration with AWS profiles defined in the ~/.aws/credentials
/ ~/.aws/config
files. A possible solution would be to allow passing profile when creating a Stack:
new Stack(app, 'Stack1', {
env: {
profile: 'account1',
},
});
The ideal customer experience we want here is to be able to say:
$ cdk deploy '*'
, and all of the different credentials for the different accounts the Stacks belong to will be automatically wired together.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:50
- Comments:33 (13 by maintainers)
Top Results From Across the Web
Deploy your CDK app to multiple environments - YouTube
AWS Hero Thorsten Hoeger shows us how to the use the new CDK Pipelines feature to setup multi account / multi region deploys....
Read more >Bootstrapping multiple AWS accounts for AWS CDK using ...
You can bootstrap an AWS account by using the AWS CDK CLI and running cdk bootstrap . This is great for teams that...
Read more >How to deploy AWS CDK stacks to multiple accounts?
Ideally, I'd like to be able to do a single command to deploy all stacks across all accounts: cdk deploy ... Or is...
Read more >CDK Cross-Account Pipelines - AWS in Plain English
Cross account pipelines are a pretty common scenario, and recommended by AWS ... I'm using AWS CDK to develop and deploy infrastructure and...
Read more >Hey CDK, how do cross-account deployments work?
The AWS CDK makes it easy to deploy your application, regardless if it consists of multiple stacks that are deployed in multiple accounts...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I am curious what people think about this idea which came up as part of the CI/Cd design: My current thinking is that when you bootstrap an environment using the cdk you will be able to specify a trusted account that will be able to deploy into this environment and then the cli will just assume a role in the target and deploy into it. No profiles needed…
It would be great if we could specify an IAM Role to assume in the
Environment
object.Example