Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

Build an API with AWS Lambda Function URLs. Automated with SAM CLI and Lambda Powertools

Steps

Local

  • pip3 install -r src/requirements.txt
  • modify utils/
  • python3 -m pytest tests/unit

Local lambda

  • replace "my-stack-name" in samconfig.toml
  • modify src/app lambda handler
  • turn on docker
  • sam build
  • sam local invoke ApiFunction -e events/event.json

Deploy

  • sam build && sam deploy --guided

Invoke

  • get deployed function url
    • ./get_lambda_url.sh my-stack-name
  • curl "function_url/?my_id=1234"

Resources

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages