/SQSLambdaTriggers

scripts needed for SQS Lambda Triggers lab

Primary LanguagePython

Triggering Lambda from SQS

Create DynamoDB Table

aws dynamodb create-table --table-name Message \
  --attribute-definitions AttributeName=MessageId,AttributeType=S \
  --key-schema AttributeName=MessageId,KeyType=HASH \
  --billing-mode=PAY_PER_REQUEST

Create SQS Queue

aws sqs create-queue --queue-name Messages

Sending messages to SQS

Run the provided script send_message.py to send messages to SQS

Example: Send a message containing random text to the Messages queue every 0.1 second (10 messages per second):

./send_message.py -q Messages -i 0.1

Press Ctrl+C to quit.