Code Challenge #7:
Publish Amazon SNS Messages to an Amazon SQS Queue
Instructions:
Write a program that publishes a message to an SNS topic in the us-west-2 region and polls an SQS queue to retrieve the message.
Go here for more information on participating in the AWS re:Invent Code Challenge and prizes.
Services Used:
- Amazon SNS
- Amazon SQS
Your code should include:
- Code that creates an SQS queue in us-west-2
- Code that creates an SNS topic in us-west-2
- Code that subscribes the SQS queue to the SNS topic
- Code that publishes a message to the SNS topic
- Code that polls on the SQS queue until the message arrives
Your output should include:
- Ability to enter a message to publish to Amazon SNS
- Display the "Message", "MessageID", "Signature", "SignatureVersion", "SigningCertURL", "Timestamp", "TopicArn", "Type", and "UnsubscribeURL" parameters from the SQS message
