
146 Chapter 6: Serverless ETL Tenologies
Chalice Framework on AWS Lambda
Another option for developing serverless AWS applications is to use the alice framework³⁰⁵. Here
is how to get started.
A. Create credentials.
1 $ mkdir ~/.aws
2 $ cat >> ~/.aws/config
3 [default]
4 aws_access_key_id=YOUR_ACCESS_KEY_HERE
5 aws_secret_access_key=YOUR_SECRET_ACCESS_KEY
6 region=YOUR_REGION (such as us-west-2, us-west-1, etc)
B. Next, setup a project.
1 python3 -m venv ~/.hello && source ~/.hello/bin/activate
2 chalice new-project hello && hello
Inspect the
app.py
file.
1 from chalice import Chalice
2
3 app = Chalice(app_name='hello')
4
5
6 @app.route('/')
7 def index():
8 return ...