For this workshop we will be using AWS Chalice - a framework for writing serverless, API first and/or event driven applications. Anyone familiar with Flask or FastAPI should feel right at home with the decorator-based approach of Chalice.
I chose it because it is simple enough to get started in minutes and yet powerful enough to give you a taste of writing scalable apps on AWS. Developers like using it because it takes care of the heavy lifting for them and provisions (most of) the infrastructure needed.
It provides a very good developer experience since everything, the application and its infrastructure, can be deployed right from your machine or from a CI/CD system with a single command.
git clone git@github.com:ivica-k/serverless-workshop-code.git
./workshop_setup.sh
AWS_ACCESS_KEY_ID
and AWS_SECRET_ACCESS_KEY
values will be provided to you.AWS_ACCESS_KEY_ID
and AWS_SECRET_ACCESS_KEY
values of the IAM user or assumed role..env
file which contains important variables:{
set -a
source savealife/.env
set +a
}
Step 5 is needed in every terminal window you may use in this workshop. Not having the environment variables present will make certain commands or actions fail.