Skip to content

Commit ad8de8b

Browse files
committed
deps: try relying on Lambda's version of boto3/botocore
1 parent f8c1861 commit ad8de8b

File tree

3 files changed

+38
-26
lines changed

3 files changed

+38
-26
lines changed

infrastructure/aws/lambda/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ RUN cd /asset && find . -type d -a -name '__pycache__' -print0 | xargs -0 rm -rf
2121
RUN cd /asset && find . -type f -a -name '*.py' -print0 | xargs -0 rm -f
2222
RUN find /asset -type d -a -name 'tests' -print0 | xargs -0 rm -rf
2323
RUN rm -rdf /asset/numpy/doc/ /asset/bin /asset/geos_license /asset/Misc
24+
RUN rm -rdf /asset/boto3*
25+
RUN rm -rdf /asset/botocore*
2426

2527
# Strip debug symbols from compiled C/C++ code (except for numpy.libs!)
2628
RUN cd /asset && \

pyproject.toml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,24 +24,24 @@ dependencies = [
2424
"titiler.core>=0.23.1,<0.24",
2525
"titiler.mosaic>=0.23.1,<0.24",
2626
"titiler.xarray>=0.23.1,<0.24",
27-
"aiobotocore>=2.20",
27+
"aiobotocore>=2.13.3",
2828
"boto3>=1.34.145",
2929
"cftime~=1.6.4",
3030
"earthaccess~=0.11.0",
31+
"geojson-pydantic>=2.0.0,<3.0",
3132
"h5netcdf~=1.1.0",
33+
"httpx>=0.27.2",
34+
"isodate>=0.7.2",
3235
"orjson~=3.10.7",
36+
"pillow>=11.0.0",
37+
"psutil>=6.0.0",
3338
"pydantic-settings~=2.0",
3439
"pydantic>=2.4,<3.0",
40+
"python-dateutil>=2.9.0.post0",
3541
"rio_tiler[s3]>=7.2.0,<8.0",
3642
"rioxarray~=0.13.4",
3743
"s3fs~=2025.9.0",
3844
"xarray~=2024.9.0",
39-
"geojson-pydantic>=2.0.0,<3.0",
40-
"python-dateutil>=2.9.0.post0",
41-
"httpx>=0.27.2",
42-
"pillow>=11.0.0",
43-
"isodate>=0.7.2",
44-
"psutil>=6.0.0",
4545
]
4646
dynamic = ["version"]
4747

@@ -50,7 +50,12 @@ uvicorn = [
5050
"uvicorn",
5151
]
5252

53-
lambda = ["mangum==0.19.0"]
53+
lambda = [
54+
"aiobotocore==2.13.3",
55+
"boto3==1.34.145",
56+
"botocore==1.34.145",
57+
"mangum==0.19.0",
58+
]
5459

5560
[dependency-groups]
5661
dev = [

uv.lock

Lines changed: 23 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)