amplify-cli icon indicating copy to clipboard operation
amplify-cli copied to clipboard

Template may not exceed 460800 bytes in size.

Open JustFly1984 opened this issue 8 years ago • 33 comments

Describe the bug Template may not exceed 460800 bytes in size.

Template is autogenerated and the size is 523Kb.

Expected behavior if generated code exceeding the limit, it should be divided to sub-stack.

If you have some solution, please share.

JustFly1984 avatar Sep 20 '18 22:09 JustFly1984

We are tackling the Cloudformation limit issues very soon and will be migrating the transform to use nested stacks. Resources just freed up so expect to see movement on this issue soon.

mikeparisstuff avatar Sep 21 '18 19:09 mikeparisstuff

Thank you! This is amazing news!!! We are screwed with our current project implementation development, and can't deploy to production new features since last week, cos our project www.agrariansupply.com is developing at fast pace. Please post any news as soon as it possible to use amplify-cli again.

Thank you for your work, it really improves our development workflow.

JustFly1984 avatar Sep 22 '18 23:09 JustFly1984

Is there any update?

JustFly1984 avatar Sep 26 '18 20:09 JustFly1984

Any news?

JustFly1984 avatar Oct 13 '18 20:10 JustFly1984

we have the same problem as well. do you have any ETA when will this issue be resolved?

christianto88 avatar Oct 17 '18 07:10 christianto88

Hey guys, why is it taking so long?

JustFly1984 avatar Nov 12 '18 20:11 JustFly1984

Hi, any updates on this issue. Is there any workaround for this problem.

kunwarVivek avatar Nov 16 '18 13:11 kunwarVivek

@kunwarVivek
We are using lambdas with graphql resolvers to DynamoDB instead of Amplify as workaround.

JustFly1984 avatar Nov 16 '18 18:11 JustFly1984

I feel like AWS spending not enough for open-source support (((

JustFly1984 avatar Nov 16 '18 18:11 JustFly1984

@JustFly1984 We’re actively working to support this currently. We have a design for this and have started work on it but it’s not production ready yet.

kaustavghosh06 avatar Nov 16 '18 18:11 kaustavghosh06

Team,

Atleast suggest a workaround.

We have not more than 12-15 tables with couple of 1 to many relationships and we are stuck.

Regards Kunwar +91-9980915147

On Fri, Nov 16, 2018 at 11:43 PM Kaustav Ghosh [email protected] wrote:

@JustFly1984 https://github.com/JustFly1984 We’re actively working to support this currently. We have a design for this and have started work on it but it’s notboeiduction ready yet.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/aws-amplify/amplify-cli/issues/185#issuecomment-439479503, or mute the thread https://github.com/notifications/unsubscribe-auth/AFAChUlDxVg37gG_goDNXWgYqW-luzStks5uvwA_gaJpZM4WzLLL .

kunwarVivek avatar Nov 17 '18 14:11 kunwarVivek

Any news on this? Stuck in an app with 20 tables and 8 have one-to-many relationships.

darrylmack avatar Nov 20 '18 21:11 darrylmack

@kaustavghosh06 In the interim, is there a workaround. Splitting the CloudFormation templates doesn't seem possible as the cli generates the template. Is it possible to generate the template with fewer tables. and then edit the schema directly in the AWS console?

Or will that overwrite the local schema.graphql on next amplify push?

darrylmack avatar Nov 20 '18 21:11 darrylmack

@darrylmack We're still working on this as the solution for this isn't trivial. For the interim, you could create the API on the Appsync console, using the contents present in amplify/api//build/ directory and then could probably do a codegen on that API using the amplify add codegen --apiId XXXXXX. This also adds the appsync API to your aws_exports.js file which would be accessible by your frontend code via the AWS Amplify JS lib.

kaustavghosh06 avatar Nov 20 '18 23:11 kaustavghosh06

Hi,

Will " amplify add codegen " create the corresponding dynamodb tables and roles that are required to access the tables .

Regards Kunwar +91-9980915147

On Wed, Nov 21, 2018 at 5:12 AM Kaustav Ghosh [email protected] wrote:

@darrylmack https://github.com/darrylmack We're still working on this as the solution for this isn't trivial. For the interim, you could create the API on the Appsync console, using the contents present in amplify/api//build/ directory and then could probably do a codegen on that API using the amplify add codegen --apiId XXXXXX. This also adds the appsync API to your aws_exports.js file which would be accessible by your frontend code via the AWS Amplify JS lib.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/aws-amplify/amplify-cli/issues/185#issuecomment-440468927, or mute the thread https://github.com/notifications/unsubscribe-auth/AFAChaiT-X0Q-UMGsUmOVYkl-wHECy0Zks5uxJNKgaJpZM4WzLLL .

kunwarVivek avatar Nov 21 '18 07:11 kunwarVivek

Hi

amplify add codegen --apiId XXXXX
```   generates invalid subcommand. Is this a valid command?

afuyo avatar Nov 27 '18 12:11 afuyo

Hi, Is there any update for this issue? How long will this take ?

rajababu3 avatar Dec 03 '18 11:12 rajababu3

@kaustavghosh06 I updated the schema in AppSync console.

When I run: amplify add codegen --apiId [myAPIId] I get the following error: Codegen support only one GraphQL API per project

How do I get around this?

Edit: trying amplify codegen statements

kldeb avatar Dec 13 '18 19:12 kldeb

I am having this issue as well, i saw in another post that the auto-generated template uses pretty print for the json output making my template file. 959KB however just minifying(removing the whitespace) reduces that size to 207KB under the max size.

Maybe while you work on fixing the issue you could release a stop gap version that used a minified json file?

chasen avatar Dec 22 '18 01:12 chasen

Is there any update? It is been 3 months since I opened an issue.

JustFly1984 avatar Dec 22 '18 05:12 JustFly1984