Short and to the Point: Test SQS from AWS CLI

1. Enter credentials

aws configure --profile test-profile

AWS Access Key ID [None]: ********
AWS Secret Access Key [None]: ********
Default region name [None]:
Default output format [None]:

2. Receive Messages

aws sqs receive-message --queue-url https://.... --profile test-profile --region eu-west-2

should display something like (unless the queue is empty):

{
    "Messages": [
        {
            "MessageId": "...",
            "ReceiptHandle": "...",
            "MD5OfBody": "...",
            "Body": "..."
        }
    ]
}

P.S. Got to love AWS CLI and Azure CLI. Powershell alternatives sort of suck, even being architecturally more superior.

Thanks! You can always email me or use contact form for more questions/comments etc.


aws

82 Words

2021-03-19