$ aws lambda invoke --function-name greetingsOnDemand --payload '{"name":"John"}' --cli-binary-format raw-in-base64-out out
An error occurred (InvalidRequestContentException) when calling the Invoke operation: Could not parse request body into json: Unexpected character ((CTRL-CHAR, code 157)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
at [Source: (byte[])"&g"; line: 1, column: 2]
$ aws lambda invoke --function-name greetingsOnDemand --payload '{"Name":"123"}' out
Invalid base64: "{"Name":"123"}"
$ aws lambda invoke --function-name greetingsOnDemand --payload '{"name":"John"}' --cli-binary-format raw-in-base64-out out
{
"StatusCode": 200,
"ExecutedVersion": "$LATEST"
}