Skip to content

Instantly share code, notes, and snippets.

@tarasowski
Last active July 18, 2018 09:20
Show Gist options
  • Save tarasowski/138027afd4421bd381da9dec70efed4e to your computer and use it in GitHub Desktop.
Save tarasowski/138027afd4421bd381da9dec70efed4e to your computer and use it in GitHub Desktop.
#Lambda - Local Invocation AWS SAM
sam local invoke SaveContact -e ../../_mocks/lambda-payload-save-contact.json --template ../../../../template.yaml
sam local invoke SaveCompany -e ../../_mocks/lambda-payload-save-company.json --template ../../../../template.yaml
sam local invoke SaveDeal -e ../../_mocks/lambda-payload-save-deal.json --template ../../../../template.yaml
sam local invoke SaveActivity -e ../../_mocks/lambda-payload-save-activity.json --template ../../../../template.yaml
//stdin
echo '{"message": "Hey, are you there?" }' | sam local invoke "Ratings"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment