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