The following steps are here to help you install and initialize your Chalice Project.
If you haven’t already, please install Python 3.7. After installing Python, run your terminal/command interface.
$ python3 pip install chalice
$ chalice new-project chalice-workshop
chalice-workshop
will have been created. The directory should contain the following files:
$ ls -a
.chalice app.py .gitignore requirements.txt
In order to sync our Chalice Project with our AWS account, your AWS credentials must be configured on your machine. Keep your account’s access and secret keys on hand:
$ mkdir ~/.aws
$ cat >> ~/.aws/config
[default]
aws_access_key_id=YOUR_ACCESS_KEY_HERE
aws_secret_access_key=YOUR_SECRET_ACCESS_KEY
region=YOUR_REGION (such as us-west-2, us-west-1, etc)
If you are using SSO credentials, export them as environment variables via command line.
If you would like a more detailed explanation of the installation, click here.