-
Notifications
You must be signed in to change notification settings - Fork 825
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
poor error handling when reaching Amplify app limit #10063
Comments
Hello, if nobody is working on this I would like to give it a try |
Awesome @SebasRod23! Before opening a pull request, could you provide an overview of your solution in this issue? That way we can align on an approach before you spend time working on it. |
Sure, as soon as I get a possible solution I will share it to you. First, I would like to reproduce this issue and check the documentation to help me design a solution. Do you have any tips? |
Hi @jhockett. I was able to reproduce the issue and I have an idea for a possible solution that I would like to discuss before start coding it. I think we can add some validation for the To make this validation we can use the |
Hi @SebasRod23, apologies for the late response. I think the approach you laid out can work, but for now let's stick to printing a warning message since it won't affect existing behavior. The exact behavior and messaging will be decided in an API review, so I wouldn't bother implementing anything more complex than a warning for now. I think a more ideal solution would be to check the total number of apps present in the given region before init begins, but it's more complicated and beyond the scope of this PR. |
Perfect, I will start working on this solution with these changes. |
Validate that the app limit has not been reached by checking the meta file and print a warning it it has been reached Closes aws-amplify#10063
…10158) * fix: validate that the app limit has not been reached Validate that the app limit has not been reached by checking the meta file and print a warning it it has been reached Closes #10063 * refactor: change context.print to printer * refactor: change message content * fix: update warning message
Before opening, please confirm:
How did you install the Amplify CLI?
Applies to all installations
If applicable, what version of Node.js are you using?
N/A
Amplify CLI Version
7.6.26
What operating system are you using?
Mac
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
N/A
Amplify Categories
Not applicable
Amplify Commands
add, update
Describe the bug
At time of writing, there's a 25 Amplify application limit for a single AWS account in a given region. When this limit is reached, the CLI will not fail gracefully and can result in a misleading error message about a missing appId and a stack trace dump.
Expected behavior
A helpful error message with next steps.
Reproduction steps
Create 25 Amplify apps
Initialize a new Amplify app and try to run various operations with the CLI
GraphQL schema(s)
# Put schemas below this line
Log output
Additional information
The text was updated successfully, but these errors were encountered: