awslabs / aws-api-gateway-developer-portal

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

CognitoPostConfirmationTriggerFn - Limitation on the characters allowed for stack name to be only 14 chars #434

Open vullankib opened 3 years ago

vullankib commented 3 years ago

This is with reference to the issue: https://github.com/awslabs/aws-api-gateway-developer-portal/issues/425

Though we can get pass this error "CognitoPostConfirmationTriggerFn' at 'functionName' failed to satisfy constraint: Member must have length less than or equal to 64", if the template can be updated to accommodate more characters than 14 character limit on the stack name, that will be helpful for coming up with meaningful names.

Reason for 14 characters is "serverlessrepo-12345678901234-CognitoPostAuthenticationTriggerFn", the serverlessrepo and CognitoPostAuthenticationTriggerFn are part of the name string which limits the stack name. Please consider this as an enhancement.