Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't deploy to AWS Lambda #2

Closed
vincentsarago opened this issue Nov 9, 2024 · 2 comments
Closed

Can't deploy to AWS Lambda #2

vincentsarago opened this issue Nov 9, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@vincentsarago
Copy link
Member

As reported in developmentseed/titiler-xarray#56

For now the package is around 270Mb 😭, most of this comes from numpy, pandas, rasterio and pyproj

There might be ways to reduce the package by using https://github.com/lambgeo/docker-lambda but it's really outdated 😬

@vincentsarago vincentsarago self-assigned this Nov 9, 2024
@vincentsarago vincentsarago added the bug Something isn't working label Nov 9, 2024
@vincentsarago
Copy link
Member Author

while we figure how to make the package smaller, I've deployed a version using AWS ECR image

3b209c3

The problem is now the cold start takes seconds....

@vincentsarago
Copy link
Member Author

I was able to make the lambda package just around 250Mb (it's says 253Mb on my laptop 😅)

https://github.com/developmentseed/titiler-md-demo/blob/main/infrastructure/aws/lambda/lambda.Dockerfile#L19

🥳

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant