I do not want to wait for 14 seconds to read CloudWatch Lambda logs. Is there any way to read them in realtime in invoking shell on premises (outside VPC)?
- Invoke async
result = lam.invoke(
InvocationType='Event',
FunctionName='my-lambda-func',
Payload=json.dumps(dict(test='test'))
)
- Lambda writes logs to a service in question.
- Loop/wait for real-time results in the same on separate shell.