AWS CLI execute a lambda function issue
It looks like you need to provide an outfile. So re-run it as follows:
aws lambda invoke \
--function-name arn:aws:lambda:us-east-1:111111111:function:xxx \
--invocation-type RequestResponse \
outfile.txt
In addition to @jarmod's answer:
You can use -
if want to send output directly to stdout:
aws lambda invoke --function-name my_function --invocation-type RequestResponse --log-type Tail - | grep "LogResult"| awk -F'"' '{print $4}' | base64 --decode
or if you have jq
aws lambda invoke --function-name my_function --invocation-type RequestResponse --log-type Tail - | jq '.LogResult' -r | base64 --decode