Complete the code to create a simple AWS SQS queue named 'MyQueue'.
aws sqs create-queue --queue-name [1]The command creates an SQS queue named 'MyQueue'. This name is used to identify the queue.
Complete the code to send a message 'HelloWorld' to the SQS queue URL stored in QUEUE_URL.
aws sqs send-message --queue-url [1] --message-body HelloWorldThe variable $QUEUE_URL holds the URL of the SQS queue. It must be referenced with a $ to be expanded in the shell.
Fix the error in the AWS CLI command to receive one message from the queue URL stored in QUEUE_URL.
aws sqs receive-message --queue-url [1] --max-number-of-messages 1
The variable $QUEUE_URL must be used with the $ sign to correctly pass the queue URL to the command.
Fill both blanks to create an SNS topic named 'MyTopic' and subscribe an email endpoint to it.
aws sns create-topic --name [1] aws sns subscribe --topic-arn [2] --protocol email --notification-endpoint user@example.com
The topic name must be 'MyTopic' to match the ARN used in the subscription command. The ARN includes the topic name and region/account info.
Fill all three blanks to publish a message 'Hello Subscribers' to the SNS topic ARN stored in TOPIC_ARN variable.
aws sns publish --topic-arn [1] --message [2] --subject [3]
The topic ARN variable must be referenced with $ to expand its value. The message and subject must be quoted strings.