How to send message to SQS queue from AWS CLI

Get the url of the queue using below command where queuename is the name of the queue.

aws sqs get-queue-url --queue-name queuename

Substitute the url in the below command to send the message to the sqs queue.

aws sqs send-message --queue-url https://this/is/the/url --message-body "This is the message body"

See also  How to concatenate columns in Redshift database