{"action":"created","issue":{"url":"https://api.github.com/repos/serverless/serverless/issues/2387","repository_url":"https://api.github.com/repos/serverless/serverless","labels_url":"https://api.github.com/repos/serverless/serverless/issues/2387/labels{/name}","comments_url":"https://api.github.com/repos/serverless/serverless/issues/2387/comments","events_url":"https://api.github.com/repos/serverless/serverless/issues/2387/events","html_url":"https://github.com/serverless/serverless/issues/2387","id":183163323,"number":2387,"title":"Unable to create services with a high endpoint count. 1.0.2","user":{"login":"jordanmack","id":37931,"avatar_url":"https://avatars.githubusercontent.com/u/37931?v=3","gravatar_id":"","url":"https://api.github.com/users/jordanmack","html_url":"https://github.com/jordanmack","followers_url":"https://api.github.com/users/jordanmack/followers","following_url":"https://api.github.com/users/jordanmack/following{/other_user}","gists_url":"https://api.github.com/users/jordanmack/gists{/gist_id}","starred_url":"https://api.github.com/users/jordanmack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jordanmack/subscriptions","organizations_url":"https://api.github.com/users/jordanmack/orgs","repos_url":"https://api.github.com/users/jordanmack/repos","events_url":"https://api.github.com/users/jordanmack/events{/privacy}","received_events_url":"https://api.github.com/users/jordanmack/received_events","type":"User","site_admin":false},"labels":[{"id":485436038,"url":"https://api.github.com/repos/serverless/serverless/labels/kind/question","name":"kind/question","color":"EBEFC9","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":34,"created_at":"2016-10-14T22:24:26Z","updated_at":"2016-12-17T03:44:22Z","closed_at":null,"body":"# This is a Bug Report\n## Description\n- What went wrong?\n\nAfter upgrading my project from 0.5.6 to 1.0.0 I attempted to deploy and received this error:\n\n`Template format error: Number of resources, 202, is greater than maximum allowed, 200`\n- What did you expect should have happened?\n\nI expect that this should have worked since there is no limitation on AWS that should forbid this, and it was working on 0.5.6. Serverless should break up the template resources automatically to make this possible.\n\nWith the current method you are forced to break up the service, which should not be necessary. This causes problems with general project structure, custom domain mapping, and shared dependencies.\n- What was the config you used?\n\nThe example config below will generate the error by creating 65 endpoints.\n\n```\nservice: test\n\nprovider:\n  name: aws\n  runtime: nodejs4.3\n\nfunctions:\n  hello:\n    handler: handler.hello\n    events:\n      - http:\n          path: e00\n          method: get\n          cors: true\n      - http:\n          path: e01\n          method: get\n          cors: true\n      - http:\n          path: e02\n          method: get\n          cors: true\n      - http:\n          path: e03\n          method: get\n          cors: true\n      - http:\n          path: e04\n          method: get\n          cors: true\n      - http:\n          path: e05\n          method: get\n          cors: true\n      - http:\n          path: e06\n          method: get\n          cors: true\n      - http:\n          path: e07\n          method: get\n          cors: true\n      - http:\n          path: e08\n          method: get\n          cors: true\n      - http:\n          path: e09\n          method: get\n          cors: true\n      - http:\n          path: e10\n          method: get\n          cors: true\n      - http:\n          path: e11\n          method: get\n          cors: true\n      - http:\n          path: e12\n          method: get\n          cors: true\n      - http:\n          path: e13\n          method: get\n          cors: true\n      - http:\n          path: e14\n          method: get\n          cors: true\n      - http:\n          path: e15\n          method: get\n          cors: true\n      - http:\n          path: e16\n          method: get\n          cors: true\n      - http:\n          path: e17\n          method: get\n          cors: true\n      - http:\n          path: e18\n          method: get\n          cors: true\n      - http:\n          path: e19\n          method: get\n          cors: true\n      - http:\n          path: e20\n          method: get\n          cors: true\n      - http:\n          path: e21\n          method: get\n          cors: true\n      - http:\n          path: e22\n          method: get\n          cors: true\n      - http:\n          path: e23\n          method: get\n          cors: true\n      - http:\n          path: e24\n          method: get\n          cors: true\n      - http:\n          path: e25\n          method: get\n          cors: true\n      - http:\n          path: e26\n          method: get\n          cors: true\n      - http:\n          path: e27\n          method: get\n          cors: true\n      - http:\n          path: e28\n          method: get\n          cors: true\n      - http:\n          path: e29\n          method: get\n          cors: true\n      - http:\n          path: e30\n          method: get\n          cors: true\n      - http:\n          path: e31\n          method: get\n          cors: true\n      - http:\n          path: e32\n          method: get\n          cors: true\n      - http:\n          path: e33\n          method: get\n          cors: true\n      - http:\n          path: e34\n          method: get\n          cors: true\n      - http:\n          path: e35\n          method: get\n          cors: true\n      - http:\n          path: e36\n          method: get\n          cors: true\n      - http:\n          path: e37\n          method: get\n          cors: true\n      - http:\n          path: e38\n          method: get\n          cors: true\n      - http:\n          path: e39\n          method: get\n          cors: true\n      - http:\n          path: e40\n          method: get\n          cors: true\n      - http:\n          path: e41\n          method: get\n          cors: true\n      - http:\n          path: e42\n          method: get\n          cors: true\n      - http:\n          path: e43\n          method: get\n          cors: true\n      - http:\n          path: e44\n          method: get\n          cors: true\n      - http:\n          path: e45\n          method: get\n          cors: true\n      - http:\n          path: e46\n          method: get\n          cors: true\n      - http:\n          path: e47\n          method: get\n          cors: true\n      - http:\n          path: e48\n          method: get\n          cors: true\n      - http:\n          path: e49\n          method: get\n          cors: true\n      - http:\n          path: e50\n          method: get\n          cors: true\n      - http:\n          path: e51\n          method: get\n          cors: true\n      - http:\n          path: e52\n          method: get\n          cors: true\n      - http:\n          path: e53\n          method: get\n          cors: true\n      - http:\n          path: e54\n          method: get\n          cors: true\n      - http:\n          path: e55\n          method: get\n          cors: true\n      - http:\n          path: e56\n          method: get\n          cors: true\n      - http:\n          path: e57\n          method: get\n          cors: true\n      - http:\n          path: e58\n          method: get\n          cors: true\n      - http:\n          path: e59\n          method: get\n          cors: true\n      - http:\n          path: e60\n          method: get\n          cors: true\n      - http:\n          path: e61\n          method: get\n          cors: true\n      - http:\n          path: e62\n          method: get\n          cors: true\n      - http:\n          path: e63\n          method: get\n          cors: true\n      - http:\n          path: e64\n          method: get\n          cors: true\n```\n- What stacktrace or error message from your provider did you see?\n\n`Template format error: Number of resources, 214, is greater than maximum allowed, 200`\n\nanother possible error\n\n`Template may not exceed 460800 bytes in size.`\n## Additional Data\n- **_Serverless Framework Version you're using**_: 1.0.2\n- **_Operating System**_: Windows 10 x64\n- **_Stack Trace**_: N/A\n- **_Provider Error messages**_: See above\n"},"comment":{"url":"https://api.github.com/repos/serverless/serverless/issues/comments/267740711","html_url":"https://github.com/serverless/serverless/issues/2387#issuecomment-267740711","issue_url":"https://api.github.com/repos/serverless/serverless/issues/2387","id":267740711,"user":{"login":"felipefdl","id":3098271,"avatar_url":"https://avatars.githubusercontent.com/u/3098271?v=3","gravatar_id":"","url":"https://api.github.com/users/felipefdl","html_url":"https://github.com/felipefdl","followers_url":"https://api.github.com/users/felipefdl/followers","following_url":"https://api.github.com/users/felipefdl/following{/other_user}","gists_url":"https://api.github.com/users/felipefdl/gists{/gist_id}","starred_url":"https://api.github.com/users/felipefdl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felipefdl/subscriptions","organizations_url":"https://api.github.com/users/felipefdl/orgs","repos_url":"https://api.github.com/users/felipefdl/repos","events_url":"https://api.github.com/users/felipefdl/events{/privacy}","received_events_url":"https://api.github.com/users/felipefdl/received_events","type":"User","site_admin":false},"created_at":"2016-12-17T03:44:21Z","updated_at":"2016-12-17T03:44:21Z","body":"I just saw on serverless site:\r\n\r\n> Note: Currently, every service will create a separate REST API on AWS API Gateway. Due to a limitation with AWS API Gateway, you can only have a custom domain per one REST API. If you plan on making a large REST API, please make note of this limitation. Also, a fix is in the works and is a top priority. [Reference](https://serverless.com/framework/docs/providers/aws/guide/services/)\r\n\r\nMuch better to know it is on priority. 😄 "}}
{"actor":{"display_login":"felipefdl"}}