awslabs / aws-api-gateway-developer-portal

A Serverless Developer Portal for easily publishing and cataloging APIs
Apache License 2.0
932 stars 402 forks source link

Deploy via serverless repo fail with default Application Name #586

Open weberdla opened 2 years ago

weberdla commented 2 years ago

CF stack fails with the default Application Name of 'api-gateway-dev-portal'. Generated name is too long.

Resource handler returned message: "1 validation error detected: Value 'serverlessrepo-api-gateway-dev-portal-CognitoPostConfirmationTriggerFn' at 'functionName' failed to satisfy constraint: Member must have length less than or equal to 64 (Service: Lambda, Status Code: 400, Request ID: 92d99e88-3927-45b4-9348-7a825332fba1)" (RequestToken: fbef9ca1-498c-435f-71ff-e8bf2811be0f, HandlerErrorCode: InvalidRequest)

dhouglasoliveiraatpn commented 1 year ago

To satisfy this limitation i changed the Application Name (The stack name of this application created via AWS CloudFormation) From: serverlessrepo-api-gateway-dev-portal (total length 70) To: dev-portal (total length 43)