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.51k stars 413 forks source link

Better app init cross-region experience #1887

Open iamhopaul123 opened 3 years ago

iamhopaul123 commented 3 years ago

Right now all the IAM roles we created in copilot are hardcoded. This causes a problem that users cannot create an app with the same name using different profile region, since IAM roles are global.

kohidave commented 3 years ago

There's an issue for this somewhere about providing better names - but the global app name restriction was intentional. Having multiple same names apps, I think, would be just too confusing. I think instead we should provide better and earlier error messages.

iamhopaul123 commented 3 years ago

I think instead we should provide better and earlier error messages.

Agree. at least we should let them know why the app init fails instead of going to the CFN, and how they can fix this problem (like switching region for the default profile and do app delete again).