Amplify-cli: Big CloudFormation Template

Created on 11 Sep 2018  Â·  7Comments  Â·  Source: aws-amplify/amplify-cli

Describe the bug
I have bug when i need to push my api i have very big schema.graphql file so i get this error when try push

CREATE_IN_PROGRESS apiknightswar AWS::CloudFormation::Stack Tue Sep 11 2018 01:19:38 GMT+0200 (Eastern European Standard Time) 
â ¼ Updating resources in the cloud. This may take a few minutes...

CREATE_FAILED               apiknightswar            AWS::CloudFormation::Stack Tue Sep 11 2018 01:19:40 GMT+0200 (Eastern European Standard Time) Template may not exceed 460800 bytes in size.               
UPDATE_ROLLBACK_IN_PROGRESS knightsar-20180911010749 AWS::CloudFormation::Stack Tue Sep 11 2018 01:19:40 GMT+0200 (Eastern European Standard Time) The following resource(s) failed to create: [apiknightswar].

so How to skip this problem ?

enhancement graphql-transformer

Most helpful comment

This is a known limitation that we are working towards solving with nested stacks. I have commented more on this in previously closed issues and mention the limits here https://github.com/aws-amplify/amplify-cli/pull/115.

All 7 comments

The solution is to build cloudformation-template.json in cloudformation-template.yml size will be very small so need from amplify api gql-compile make cloudformation in YAML not in JSON who make it

I have done the process manually and make cloudformation-template.yml put when use it get this problem
Template format error: Number of resources, 256, is greater than maximum allowed, 200
so we need options for big projects

so we need add feature check if cloudformation template is not equal limit nested it to more one template

we have problem with _ Template format error: Resource name Alliancecreator_player_idResolver is non alphanumeric.

This is a known limitation that we are working towards solving with nested stacks. I have commented more on this in previously closed issues and mention the limits here https://github.com/aws-amplify/amplify-cli/pull/115.

@mikeparisstuff thanks for you but i work now in my project are you will get solution soon ?
and _ underscore Resources name errors need solution else

This is a duplicate issue. Tracking this issue as a part of #185

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nicksmithr picture nicksmithr  Â·  3Comments

ffxsam picture ffxsam  Â·  3Comments

darrentarrant picture darrentarrant  Â·  3Comments

adriatikgashi picture adriatikgashi  Â·  3Comments

nason picture nason  Â·  3Comments