Running AWS SAM Local in Vagrant with Java example.
Provision the machine
vagrant upGet shell in VM
vagrant sshcd /vagrantMake sure you're in the /vagrant directory
AND
package the app
mvn packageInvoke HelloWorldFunction with data (see template.yml)
echo '{"message": "Hey, are you there?" }' | sam local invoke "HelloWorldFunction"