Chalice expects an app.py
file with routes mapped to python function.
Using chalice deploy
deploys these functions as AWS lambda and creates the route mapping in API Gateway.
I have to create a project with around 30 different route mappings. I could not find a way to keep routes for same resources separate from other resources i.e. I have to keep all the 30 mappings in the single file app.py
.
Is there anyway I can group routes belonging to same resource together and keep it in separate file? Something equivalent to controllers in Java world.
Asked
Active
Viewed 672 times
0

Abhishek Jha
- 935
- 2
- 10
- 22
1 Answers
0
This is currently not possible. You are welcome to give a thumbs up on the existing feature request to add Routes in multiple python files to Chalice.

dmulter
- 2,608
- 3
- 15
- 24