.
Building, packaging and deploy the application in production environment.
sam build && sam package && sam deploy
Deploy in the test environment (if you have set up the environment in samconfig.toml
file)
sam build --config-env test && sam package --config-env test && sam deploy --config-env test
Invoke the application with AWS Lambda locally:
sam local invoke <Function Name> --event events/event.json