Skip to content

fnAttic/python-aws

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS Lambda in Python with SAM

A sample project for building and deploying Python functions on AWS Lambda.

  • AWS: Lambda
  • Python 3.7

Prerequisites

  • AWS Account
  • AWS CLI
  • SAM CLI
  • Python 3.7

Deployment

Follow the article AWS Lambda in Python with SAM for deploying the app.

Running 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.