Skip to content

Commit

Permalink
update cdk version and fix docker
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentsarago committed Jan 31, 2024
1 parent 8d5c49a commit 41a8b76
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 22 deletions.
4 changes: 3 additions & 1 deletion infrastructure/aws/lambda/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ COPY titiler/ titiler/
# and becaise we NEED to remove both boto3 and botocore to save space for the package
# we have to force using old package version that seems `almost` compatible with Lambda env botocore
# https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html
# boto3-1.28.72
# botocore-1.31.72
RUN python -m pip install --upgrade pip
RUN python -m pip install . "mangum>=0.10.0" "botocore==1.29.76" "aiobotocore==2.5.0" -t /asset --no-binary pydantic
RUN python -m pip install . "mangum>=0.10.0" "aiobotocore==2.7.0" -t /asset --no-binary pydantic

# Reduce package size and remove useless files
RUN cd /asset && find . -type f -name '*.pyc' | while read f; do n=$(echo $f | sed 's/__pycache__\///' | sed 's/.cpython-[0-9]*//'); cp $f $n; done;
Expand Down
32 changes: 16 additions & 16 deletions infrastructure/aws/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 infrastructure/aws/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"license": "MIT",
"private": true,
"dependencies": {
"cdk": "2.76.0-alpha.0"
"cdk": "2.94.0"
},
"scripts": {
"cdk": "cdk"
Expand Down
10 changes: 6 additions & 4 deletions infrastructure/aws/requirements-cdk.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
aws-cdk-lib==2.76.0
aws_cdk-aws_apigatewayv2_alpha==2.76.0a0
aws_cdk-aws_apigatewayv2_integrations_alpha==2.76.0a0
# aws cdk
aws-cdk-lib==2.94.0
aws_cdk-aws_apigatewayv2_alpha==2.94.0a0
aws_cdk-aws_apigatewayv2_integrations_alpha==2.94.0a0
constructs>=10.0.0

pydantic>=2.4,<3.0
# pydantic settings
pydantic~=2.0
pydantic-settings~=2.0

0 comments on commit 41a8b76

Please sign in to comment.