Sending and receiving data (AWS CLI)

  1. We can send data to an AWS queue from the command line, as follows:
aws sqs send-message 
--queue-url https://queue.amazonaws.com/<account id>/my-first-queue
--message-body 'This is a test message'
--profile admin

This command will return a response, as follows:

  1. We can get data from an AWS queue from the command line, as follows:
aws sqs receive-message 
--queue-url https://queue.amazonaws.com/<account id>/my-first-queue
--profile admin

This command will return a response, as follows:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.138.122.11