Amazon SQS Queue names: use simple names
I was playing with Amazon SQS yesterday night, using RightScale gems, and I was getting strange errors:
1 <?xml version="1.0"?> 2 <Response> 3 <Errors> 4 <Error> 5 <Code>InvalidParameterValue</Code> 6 <Message/> 7 </Error> 8 </Errors> 9 <RequestID>da0bcbc2-967d-4f26-a7f1-36b87079d2ba</RequestID> 10 </Response>
This looked strange until I thought about using a plainer queue name. I switched from “xlsuite.development.resize” to “xlsuite-development-resize”. Sure enough, the error disappeared. I only found out about the requirements for the queue name this morning:
Name Description Required QueueName
The name to use for the queue created. The queue name must be unique within the scope of all your queues.
Type: String
Constraints: Maximum 80 characters; alphanumeric characters, hyphens (-), and underscores (_) are allowed.
Yes
CreateQueue in the Amazon Simple Queue Service Developer Guide
RTFM already, François. Notwithstanding my own stupidity, RightScale’s gems are very easy to use.