Command
aws lambda invoke --function-name my-function out.jsonExamples
Invoke Lambda and write output
aws lambda invoke --function-name my-function out.jsonaws lambda invoke --function-name my-function out.jsonInvoke Lambda and write output
aws lambda invoke --function-name my-function out.json