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.

Have a question⁉ Contact me.


aws

82 Words

2021-03-19