This Python sample application illustrates the worker role functionality of AWS Elastic Beanstalk. It is designed to process messages generated by the frontend sample app. Messages contain a customer's name and e-mail address, and the worker app uses SES to deliver an e-mail to the address in the message.
To test the worker app without the frontend, you can manually enqueue messages of the following format:
{
"name" : "Bender B. Rodriguez",
"email" : "bender@ilovebender.com"
}
The worker role must run in an IAM role with permissions to SES and SQS. An example policy is included in iam_policy.json.