Chalice: Multiple Lambdas in 1 Chalice project

Created on 16 Jan 2017  路  9Comments  路  Source: aws/chalice

Could we choose if we want to deploy 1 big function (current way) or to deploy separate functions for each routing definition? This could save resources and improve execution times for more robust projects.

feature-request out-of-scope

Most helpful comment

+1. For now I use separate chalice apps to keep lambdas not so huge.

All 9 comments

It would also be helpful to be able to deploy non-chalice lambdas as well, ie custom authorization lambdas, during chalice deployment.

I thought this could be done with endpoint variables? Take a look at the docs for addition routing

It's now possible to deploy non-chalice lambda for custom authorizers as well as scheduled events, but we still use one lambda function for the API handler.

However, deploying as separate functions is going to be difficult at this point. There's some assumptions baked into chalice's deployment process that assumes there's one lambda function as the API handler.

I'm going to mark this as out of scope for now, but if people want this please feel free to comment/+1 the issue and share your use case.

+1. For now I use separate chalice apps to keep lambdas not so huge.

@advaer How do you maintain the same API gateway?

+1 separate lambdas

+1
Any updates?

+1 for separate lambdas
Any updates?

+1 for configuring separate lambdas

Was this page helpful?
0 / 5 - 0 ratings

Related issues

davidolmo picture davidolmo  路  3Comments

nedlowe picture nedlowe  路  3Comments

GDavisSS picture GDavisSS  路  3Comments

michaeldimchuk picture michaeldimchuk  路  3Comments

kortina picture kortina  路  3Comments