The deployment steps for the Contact Organizer application are similar, but slightly different from, the deployment steps in the previous projects we covered. Let's get started:
- For the Contact Organizer, we need to add additional Python packages to the AWS Lambda environment. We do this by adding two packages to the requirements.txt file:
- The usaddress package is used to parse the various parts of the address, such as city, state, zip, and so on.
- The boto3 package is specified here because we need a specific version. At the time of writing, the boto3 version in the AWS Lambda environment does not support the comprehendmedical service; we need a newer version for this project:
usaddress==0.5.10
boto3==1.9.224
- Next, let's tell Chalice to perform a policy analysis for us by setting "autogen_policy" to false in the config...