diff --git a/ingest_api/infrastructure/construct.py b/ingest_api/infrastructure/construct.py index 6e3bb262..b474f37f 100644 --- a/ingest_api/infrastructure/construct.py +++ b/ingest_api/infrastructure/construct.py @@ -149,7 +149,7 @@ def build_api_lambda( platform="linux/amd64", build_args={"PGSTAC_VERSION": pgstac_version}, ), - runtime=aws_lambda.Runtime.PYTHON_3_9, + runtime=aws_lambda.Runtime.PYTHON_3_11, timeout=Duration.seconds(30), handler="handler.handler", role=handler_role, @@ -307,7 +307,7 @@ def build_ingestor( build_args={"PGSTAC_VERSION": pgstac_version}, ), handler="ingestor.handler", - runtime=aws_lambda.Runtime.PYTHON_3_9, + runtime=aws_lambda.Runtime.PYTHON_3_11, timeout=Duration.seconds(180), environment={"DB_SECRET_ARN": db_secret.secret_arn, **env}, vpc=db_vpc, diff --git a/raster_api/infrastructure/construct.py b/raster_api/infrastructure/construct.py index 389e29f5..384b083b 100644 --- a/raster_api/infrastructure/construct.py +++ b/raster_api/infrastructure/construct.py @@ -40,7 +40,7 @@ def __init__( veda_raster_function = aws_lambda.Function( self, "lambda", - runtime=aws_lambda.Runtime.PYTHON_3_9, + runtime=aws_lambda.Runtime.PYTHON_3_11, code=aws_lambda.Code.from_docker_build( path=os.path.abspath(code_dir), file="raster_api/runtime/Dockerfile", diff --git a/stac_api/infrastructure/construct.py b/stac_api/infrastructure/construct.py index 53005a90..821aac9b 100644 --- a/stac_api/infrastructure/construct.py +++ b/stac_api/infrastructure/construct.py @@ -57,7 +57,7 @@ def __init__( self, "lambda", handler="handler.handler", - runtime=aws_lambda.Runtime.PYTHON_3_9, + runtime=aws_lambda.Runtime.PYTHON_3_11, code=aws_lambda.Code.from_docker_build( path=os.path.abspath(code_dir), file="stac_api/runtime/Dockerfile",