You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In main Serverless, if a resource name ends up being too long, it's truncated and made unique e.g. 'my-long-name-trunc-H6E8'
Constructs do not appear fo this for their workers, so deployments of projects with "too long" service and/or stage and/or resource (type: queue) names fails.
Thanks for reporting this issue @tomchiverton.
To my knowledge, there is no mechanism to automatically trim long resource name in the Serverless framework packaging process. That is one of the reason for the existence of the name property, available in lambda function definition in the service file definition (see https://www.serverless.com/framework/docs/providers/aws/guide/serverless.yml/#functions).
The following exemple service file, using solely core serverless framework (not this plugin), results in the exact same error:
Could you let me know which trimming logic you're referring to ?
On the other hand, the AWS CDK, used within Lift, to provision all non-Lambda function resources, does indeed handle resource name generation to guarantee those generated strings are within services constraints.
Finally, you can use any property existing within Serverless framework documentation in the worker property of the queue construct. You can therefore refer to worker.name property, defining a short acceptable name, to bypass this problem.
Description
In main Serverless, if a resource name ends up being too long, it's truncated and made unique e.g. 'my-long-name-trunc-H6E8'
Constructs do not appear fo this for their workers, so deployments of projects with "too long" service and/or stage and/or resource (
type: queue
) names fails.How to Reproduce
sls deploy --stage the-stage-name
Additional Information
The text was updated successfully, but these errors were encountered: