Skip to content

New serverless pattern - apigw-python-cdk-lambda-snapstart#2957

Open
mate329 wants to merge 7 commits intoaws-samples:mainfrom
mate329:mate329-feature-apigw-python-cdk-lambda-snapstart
Open

New serverless pattern - apigw-python-cdk-lambda-snapstart#2957
mate329 wants to merge 7 commits intoaws-samples:mainfrom
mate329:mate329-feature-apigw-python-cdk-lambda-snapstart

Conversation

@mate329
Copy link

@mate329 mate329 commented Feb 16, 2026

Issue #, if available:

Description of changes:
This project is a serverless car store REST API built with AWS CDK (Python) that uses API Gateway, Lambda with SnapStart for improved cold start performance, and DynamoDB to provide CRUD operations on car records (make, model, year, color) through /cars endpoints, with the Lambda handler managing HTTP routing, JSON parsing, and DynamoDB operations for create, read, update, and delete functionality.

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

Copy link
Contributor

@ellisms ellisms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @mate329 . Thank you for the submission. Requesting a few changes.

mate329 and others added 6 commits March 14, 2026 11:18
Co-authored-by: ellisms <114107920+ellisms@users.noreply.github.com>
Co-authored-by: ellisms <114107920+ellisms@users.noreply.github.com>
Co-authored-by: ellisms <114107920+ellisms@users.noreply.github.com>
Co-authored-by: ellisms <114107920+ellisms@users.noreply.github.com>
pip3 install -r requirements.txt

# Install AWS Lambda Powertools library for the CarHandler Lambda
pip3 install -r CarHandler/requirements.txt -t CarHandler/
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hello @ellisms thank you very much for reviewing my PR, sir!

one question for you please - i've put the PIP command here in instructions to install aws-lambda-powertools as you've suggested. what do you think is better - keeping the installation procedure of the library like this, or creating a Lambda layer inside the CDK code?

thank you in advance!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think either is ok. In either case, I would lock in the version number so that the user is confident they will get a known-working configuration.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

understood, then i'd like to keep it as is right now. the version number is locked, so this part of the PR should be good to go. thanks!

@mate329 mate329 requested a review from ellisms March 20, 2026 08:22
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