- Newest
- Most votes
- Most comments
Hello, The error message you're encountering indicates that the name of an SQS FIFO queue in your AWS CloudFormation template does not adhere to the naming conventions required by AWS. Specifically, the rules for FIFO (First-In-First-Out) queues are: -The name must end with the .fifo suffix. -The name can only include alphanumeric characters, hyphens (-), or underscores (_). -The name must be between 1 and 80 characters in length.
Steps to Resolve the Issue
- Check the SQS Queue Names in Your Serverless Configuration: Review your serverless.yml or other configuration files where you define SQS queues. Ensure that the names for any FIFO queues follow the correct naming conventions.
- Resources:
-
MyQueue:
-
Type: AWS::SQS::Queue
-
Properties:
-
QueueName: my-queue.fifo
-
FifoQueue: true
Make sure:
The queue name ends with .fifo. The name only includes allowed characters. 2) Correct the Queue Names: If any of your FIFO queues have names that don't adhere to these rules, update them. For instance, if you have a queue name like my.queue.fifo, change it to my-queue.fifo.
After making the necessary changes, redeploy your project: serverless deploy Here’s an example configuration for a FIFO queue in serverless.yml:
- Resources:
-
MyFifoQueue:
-
Type: AWS::SQS::Queue
-
Properties:
-
QueueName: my-fifo-queue.fifo
-
FifoQueue: true
In this example: MyFifoQueue is the logical name in CloudFormation. QueueName is set to my-fifo-queue.fifo, complying with FIFO queue naming requirements.