Skip to content

Checked in new pattern rabbitmq-private-lambda-python-sam#3224

Open
gmedard wants to merge 3 commits into
aws-samples:mainfrom
gmedard:main
Open

Checked in new pattern rabbitmq-private-lambda-python-sam#3224
gmedard wants to merge 3 commits into
aws-samples:mainfrom
gmedard:main

Conversation

@gmedard

@gmedard gmedard commented Jul 10, 2026

Copy link
Copy Markdown

Issue #, if available:

Description of changes: - We created a new pattern rabbitmq-private-lambda-java-sam a few months ago. Now checking in the Python equivalent of the pattern rabbitmq-private-lambda-python-sam

When running the CloudFormation template, please remember to change the input parameter ServerlessLandGithubLocation from https://github.com/aws-samples/serverless-patterns.git to https://github.com/gmedard/serverless-patterns.git, else the sample will not work. This is only for testing till the PR is merged. Customers won't have to undertake this step.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Greg Medard added 3 commits July 10, 2026 10:14
…amoDB

- Add comprehensive README documenting the RabbitMQ consumer pattern setup and deployment workflow
- Add RabbitMQAndClientEC2.yaml CloudFormation template to provision Amazon MQ cluster in private subnets with EC2 client instance
- Add create_rabbit_queue.sh script to configure RabbitMQ virtualhosts, exchanges, and queues
- Add query_rabbit_queue.sh script to verify RabbitMQ queue configuration
- Add Lambda consumer function (lambda_function.py) to process RabbitMQ messages and store in DynamoDB
- Add SAM template (template_original.yaml) for Lambda function deployment
- Add RabbitMQ producer script (rabbitmq_producer.py) to publish JSON messages for testing
- Add example-pattern.json with pattern metadata and author information
- Add test event (event.json) for local Lambda invocation testing
- Add dependencies and configuration files (requirements.txt, commands.sh, us-500.csv sample data)
- Provides complete serverless pattern for consuming messages from private RabbitMQ clusters using Python Lambda functions
- Rename template_original.yaml to template.yaml for standard SAM deployment
- Update Lambda runtime from PYTHON3_VERSION placeholder to python3.13
- Establish template.yaml as the active configuration for RabbitMQ consumer pattern
…nfiguration

- Update build command to use `sam build --use-container` for consistent environment builds
- Replace hardcoded Python 3.13 runtime with `PYTHON3_VERSION` variable for better maintainability
- Improves cross-platform compatibility and reduces environment-related build issues
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants