
AWS Chalice allows you to quickly create and deploy applications that use Amazon API Gateway and AWS Lambda. It provides:
- A command line tool for creating, deploying, and managing your app
- A familiar and easy to use API for declaring views in python code
- Automatic IAM policy generation
$ pip install chalice
$ chalice new-project helloworld && cd helloworld
$ cat app.py
from chalice import Chalice
app = Chalice(app_name="helloworld")
@app.route("/")
def index():
return {"hello": "world"}
$ chalice deploy
...
https://endpoint/dev
$ curl https://endpoint/api
{"hello": "world"}
Up and running in less than 30 seconds.
Getting Started¶
- Quickstart and Tutorial
- Tutorial: URL Parameters
- Tutorial: Error Messages
- Tutorial: Additional Routing
- Tutorial: Request Metadata
- Tutorial: Request Content Types
- Tutorial: Customizing the HTTP Response
- Tutorial: GZIP compression for json
- Tutorial: CORS Support
- Tutorial: Policy Generation
- Tutorial: Using Custom Authentication
- Tutorial: Local Mode
- Deleting Your App
Topics¶
- Routing
- Views
- Configuration File
- Multifile Support
- Logging
- SDK Generation
- Chalice Stages
- App Packaging
- Python Version Support
- Changing Python Runtime Versions
- AWS CloudFormation Support
- Terraform Support
- Authorization
- Lambda Event Sources
- Pure Lambda Functions
- Blueprints
- Websockets
- Continuous Deployment (CD)
- Experimental APIs