We will now test the Lambda created in the previous section:
- Send a messages to the topic.
- 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.