Two lambda functions, one to retrieve prices from a 3rd party network service every 10 minutes, one to respond to an Alexa request from the data.
Uses serverless to build and deploy, following AWS's instructions on packaging as the "request" library and its dependencies are needed as a dependency.
- pip3 install -r requirements.txt -t $PWD # install to this root directory
- serverless test
- serverless deploy --verbose
The serverless deployment will create an IAM role, the lambda functions and a DynamoDB table to hold the price data.