July 2018
Intermediate to advanced
324 pages
8h 14m
English
Apart from the virtual environment, we need to configure some environment variables. We are using the Mashape API (a third-party API marketplace) and the Boto3 library. Hence, we are going to configure the environment variables with the Mashape API key and our AWS access credentials.
Zappa provides several mechanisms for the configuration of environment variables. We are going to use "remote_env". This approach requires the uploading of a JSON file on an S3 bucket.
The following is the code snippet of the configured JSON file:
{ "Mashape_API_Endpoint" : "https://XXXXXXXXXXXXXX", "X_Mashape_Key": "XXXXXXXXXXXXXXXXXXXXXXXXX", "aws_access_key_id" : "XXXXXXXXXXXXX", "aws_secret_access_key" :"XXXXXXXXXXXXXXXXXXXXXXXXXXXx" ...Read now
Unlock full access