Testing the Lambda (AWS CLI)

We will now test the Lambda created in the previous section:

  1. Send a messages to the topic.
  2. Verify the invocation by retrieving the message from the output queue:
aws sqs receive-message 
--queue-url https://queue.amazonaws.com/<account id>/my-output-queue
--max-number-of-messages 5
--profile admin

If successful, you should get the message that you posted to the topic. You can also verify the invocation details from CloudWatch logs.

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

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