Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/main-serverless-service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ permissions:
contents: read

env:
NODE_VERSION: "20"
PYTHON_VERSION: "3.13"
NODE_VERSION: "22"
PYTHON_VERSION: "3.14"
AWS_REGION: "us-east-1"

on:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pr-serverless-service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ permissions:
contents: read

env:
NODE_VERSION: "20"
PYTHON_VERSION: "3.13"
NODE_VERSION: "22"
PYTHON_VERSION: "3.14"
AWS_REGION: "us-east-1"

on:
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ repos:
exclude: "^(?!helpers/)"
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.14.3
rev: v0.14.6
hooks:
# Run the Ruff linter.
- id: ruff
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# AWS Lambda Handler Cookbook (Python)

[![license](https://img.shields.io/github/license/ran-isenberg/aws-lambda-handler-cookbook)](https://github.com/ran-isenberg/aws-lambda-handler-cookbook/blob/master/LICENSE)
![PythonSupport](https://img.shields.io/static/v1?label=python&message=3.13&color=blue?style=flat-square&logo=python)
![PythonSupport](https://img.shields.io/static/v1?label=python&message=3.14&color=blue?style=flat-square&logo=python)
[![codecov](https://codecov.io/github/ran-isenberg/aws-lambda-handler-cookbook/graph/badge.svg?token=P2K7K4KICF)](https://codecov.io/github/ran-isenberg/aws-lambda-handler-cookbook)
![version](https://img.shields.io/github/v/release/ran-isenberg/aws-lambda-handler-cookbook)
![github-star-badge](https://img.shields.io/github/stars/ran-isenberg/aws-lambda-handler-cookbook.svg?style=social)
Expand All @@ -10,7 +10,7 @@

![alt text](https://github.com/ran-isenberg/aws-lambda-handler-cookbook/blob/main/docs/media/banner.png?raw=true)

This project provides a working, open source based, AWS Lambda handler skeleton Python code including DEPLOYMENT code with CDK and a pipeline.
This project provides a working, open source based, AWS Lambda handler skeleton Python code includingx DEPLOYMENT code with CDK and a pipeline.

This project can serve as a blueprint for new Serverless services - CDK deployment code, pipeline and handler are covered.

Expand Down
4 changes: 2 additions & 2 deletions cdk/service/api_construct.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def _build_common_layer(self) -> PythonLayerVersion:
self,
f'{self.id_}{constants.LAMBDA_LAYER_NAME}',
entry=constants.COMMON_LAYER_BUILD_FOLDER,
compatible_runtimes=[_lambda.Runtime.PYTHON_3_13],
compatible_runtimes=[_lambda.Runtime.PYTHON_3_14],
removal_policy=RemovalPolicy.DESTROY,
description='Common layer for the service',
compatible_architectures=[_lambda.Architecture.X86_64],
Expand All @@ -119,7 +119,7 @@ def _add_post_lambda_integration(
lambda_function = _lambda.Function(
self,
constants.CREATE_LAMBDA,
runtime=_lambda.Runtime.PYTHON_3_13,
runtime=_lambda.Runtime.PYTHON_3_14,
code=_lambda.Code.from_asset(constants.BUILD_FOLDER),
handler='service.handlers.handle_create_order.lambda_handler',
environment={
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def _build_lambda_function(self, role: iam.Role, db: dynamodb.Table, appconfig_a
return _lambda.Function(
self,
'ServicePost',
runtime=_lambda.Runtime.PYTHON_3_13,
runtime=_lambda.Runtime.PYTHON_3_14,
code=_lambda.Code.from_asset(constants.BUILD_FOLDER),
handler='service.handlers.create_order.create_order',
environment={
Expand Down
2 changes: 1 addition & 1 deletion docs/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description: AWS Lambda Cookbook Project Getting started

* **Docker** - install [Docker](https://www.docker.com/){target="_blank"}. Required for the Lambda layer packaging process.
* **[AWS CDK](cdk.md)** - Required for synth & deploying the AWS Cloudformation stack. Run CDK [Bootstrap](https://docs.aws.amazon.com/cdk/v2/guide/bootstrapping.html) on your AWS account and region.
* Python 3.13
* Python 3.14
* [poetry](https://pypi.org/project/poetry/){target="_blank"} - Make sure to have poetry v2 and above and to run ``poetry config --local virtualenvs.in-project true`` so all dependencies are installed in the project '.venv' folder.
* For Windows based machines, use the Makefile_windows version (rename to Makefile). Default Makefile is for Mac/Linux.

Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"dependencies": {
"aws-cdk": "2.1031.1"
"aws-cdk": "2.1033.0"
}
}
Loading