# Passthrough AWS credentials to docker
aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws
# Debug a flask app
$ docker-compose run -p 8000:8000 svc1 python3 -m pdb app.py
# Build, deploy and beep
$ sam build && sam deploy && print \\a
# Tail logs
$ sam logs --stack-name mktbot-serverless --tail
# Supports hot reloading (this runs all lambdas)
$ sam local start-api
# If you use the --debug flag, you will see the Event payload.
$ sam local start-api --debug
# Supply event payload to a Lambda
sam local invoke <NAME-OF-FUNCTION> -e <FILEPATH-WITH-EVENT-PAYLOAD>