-
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
fix: validate that the app limit has not been reached (issue #10063) #10158
fix: validate that the app limit has not been reached (issue #10063) #10158
Conversation
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
Codecov Report
@@ Coverage Diff @@
## master #10158 +/- ##
==========================================
+ Coverage 54.08% 54.17% +0.08%
==========================================
Files 837 840 +3
Lines 46340 46420 +80
Branches 9885 9897 +12
==========================================
+ Hits 25065 25150 +85
+ Misses 19281 19272 -9
- Partials 1994 1998 +4
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution @SebasRod23. One minor comment, but otherwise LGTM pending the API review outcome.
const appId = currentAmplifyMeta?.providers?.awscloudformation?.AmplifyAppId; | ||
|
||
if (!appId) { | ||
printer.warn('You have reached your app limit:'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be Amplify App limit
This PR will be merged after API Review |
const appId = currentAmplifyMeta?.providers?.awscloudformation?.AmplifyAppId; | ||
|
||
if (!appId) { | ||
printer.warn('You have reached your Amplify App limit:'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The maximum number of apps that you can create with Amplify in this region has likely been reached:
For more information on Amplify Service Quotas, see:
https://docs.aws.amazon.com/general/latest/gr/amplify.html#service-quotas-amplify
Description of changes
Validate that the app limit has not been reached by checking the meta file and print a warning it it
has been reached
Issue #, if available
Closes #10063
Description of how you validated changes
Reached the app limit and got the expected warning. Then, deleted an app in the cloud and created a new project, the warning was not printed as expected.
Checklist
yarn test
passesBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.