-
Notifications
You must be signed in to change notification settings - Fork 79
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
Template may not exceed 1000000 bytes in size #2153
Comments
Hi @Anirudhastikar, Thanks for raising this issue. I see that using the |
We met with the customer and determined they are reaching a hard limit set by AppSync. For anyone else that encounters this issue, AppSync is working to increase the limit for all customers. Please refer to this ticket for the status of that feature. |
Hello @Anirudhastikar, did you managed to solve this issue? I am also facing this on my production and cannot release the new changes. The same deployment on staging env was a success |
AppSync is starting to roll out the change that should resolve this. @JeetTatva are you seeing the |
@dpilch I get the Template may not exceed 1000000 bytes in size error |
AppSync has released the change in all regions. @JeetTatva are you still experiencing the issue? |
@dpilch I am using Gen 2 and I see this warning. Does this mean I can ignore it and I should be good?
|
No, this should not be ignored. You might be encountering a different issue (but with the same error message) than the original poster. You probably need to preform stack mapping in this case. I'm not able to find the docs for this ATM. I'll comment back here when I find it. |
When did they released the change? |
The change was deployed region as of May 28. |
@dpilch were you able to find anything for Gen 2? Just wondering if there is any work around or something I can do so that I don't hit the limit |
Hi @dpilch, thanks for your help on this issue. I got the same following Error on amplify build logs : It is probably due to our large graphql schema, but I am not 100% sure. |
It's definitely either due to a large schema and or appsync pipeline resolvers. Would really like a work around here because it basically blocks any further development work. |
Also, it seem that the project is stuck in this error mode. EDIT : In the "#current-cloud-backend" folder, I found the template file >1Mb, so it seems that it has been accepted once, and then stuck the app? EDIT 2 : The cloudformation file in the amplify-cfn-templates/ folder and the one in the "#current-cloud-backend" are not 100% the same : the first one has 1 space indentation and the second one has 2 spaces. As consequence they don't have the same size, the second one is >1Mb while the first one is not. |
I'm facing the same issue with Amplify Gen 2: Template may not exceed 1000000 bytes in size. To give you some context (as on September 16 2024): I really appreciate it if someone could help me to solve this issue with Amplify Gen 2. Thanks in advance. |
Any updates on this issue?? Can't add even a single field in my schema. |
Hello all, I have also reached this limit and i am not able to add anything else (but i need to).
I have already disabled all the operations i could using |
@thomasoehri You can try --minify flag to reduce the size of file but I wonder if this will work if deployed using CI/CD. minify flag was useful for me when I pushed the changes into my staging environment but for the production I use CI/CD using Amplify, there it did not minified the file and we were stuck. To resolve it I had to remove unnecessary models and properties from my schema but that is the not the correct solution but maybe for now you can use it. |
Amplify CLI Version
12.0.3
Question
This error is blocking us from making any further changes to our API. We have a large schema and sometimes when we try to push it gives us the error
Template may not exceed 1000000 bytes in size
. So why did this error come apparently?These are two GitHub issues as references:
The text was updated successfully, but these errors were encountered: