aws / copilot-cli

The AWS Copilot CLI is a tool for developers to build, release and operate production ready containerized applications on AWS App Runner or Amazon ECS on AWS Fargate.
https://aws.github.io/copilot-cli/
Apache License 2.0
3.42k stars 397 forks source link

Document multi-account deployment best practices and resources #3602

Open dannyrandall opened 2 years ago

dannyrandall commented 2 years ago

From Gitter.

It would be helpful for the copilot docs to include some documentation around deploying to multiple accounts, for example, having a separate test and a prod account. Some useful details to include:

Related issue: https://github.com/aws/copilot-cli/issues/2939

craigjbass commented 1 year ago

@iamhopaul123 https://github.com/aws/copilot-cli/issues/2939#issuecomment-949031717 mentions in this issue that multiple accounts is possible/encouraged, but it's not clear to me how to do this.

paragbhingre commented 1 year ago

@craigjbass Let's take the same example from the issue that you have mentioned above to help you understand multiple accounts implementation with Copilot.

Please let us know if you have any more questions.

craigjbass commented 1 year ago

Thanks for the reply, that's interesting! It did not occur to me that the application infrastructure role stack could exist in a different account (I didn't really understand how this component worked).

Hmm, I wonder how this would work with e.g. AWS SSO (now IAM Identity Center). I presume the profile prod needs access to resources in the tooling account?

dannyrandall commented 1 year ago

jumping in to link https://github.com/aws/copilot-cli/issues/3786 - there are a few multi account options discussed over there!