A sample project for building and deploying Python functions on AWS Lambda.
- AWS: Lambda
- Python 3.7
- AWS Account
- AWS CLI
- SAM CLI
- Python 3.7
Follow the article AWS Lambda in Python with SAM for deploying the app.
[STACK_NAME]
is the name of the stack used for deployment.
aws cloudformation describe-stacks --stack-name [STACK_NAME]
Grab the RootUrl
from the output and use it in the next command to run the test.
curl -X GET [RootUrl]/hn/story/top
You should see the title, author and URL for the top HackerNews story in plain text.