Skip to content

Serverless application deploy issue

0

Hello, everyone. Hope you are doing well. Currently I am working on a serverless project version upgrade. I have updated current project's nodejs version from 16.x to 20.x and also updated serverless version from 2.x to 3.x. Of course updated other dependencies also. After this update, if I run the project in offline mode, it works well. Btw when I try to deploy this project to AWS lambda, I face this issue:

Error: UPDATE_FAILED: productSync (AWS::SQS::Queue) Resource handler returned message: "The name of a FIFO queue can only include alphanumeric characters, hyphens, or underscores, must end with .fifo suffix and be 1 to 80 in length.

I tried to solve this with GPT btw all recommendation from it are not working. If anyone knows the solution, please kindly reply me. Hope to get a guidance from an expert. Thanks in advance.

asked 2 years ago451 views

1 Answer
0

Hello.

Just looking at the error message, it looks like there is a problem with the name of the SQS queue contained within the template.
How is the SQS queue defined in the template?
For example, if I temporarily change the "QueueName" defined in the template to a shorter name, will the deployment succeed?

EXPERT

answered 2 years ago

  • Hello, Riku Thanks for your reply. Here is the definition for it.

    productSync: Type: 'AWS::SQS::Queue' Properties: QueueName: ${/preview/sqs/product_sync_queue} FifoQueue: true ContentBasedDeduplication: true VisibilityTimeout: 900

    How do I have to update this?

  • And if this is an issue of length of name, it's weird. This was working well before nodejs and severless version upgrade. What do you think about it?

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.