Reputation: 29
I am trying a read a static json file which has cloudwatch logs in it and that same json file is stored on my local machine , now i want to write a lambda function which will read that json file and fetch the logs as output
Upvotes: 0
Views: 4384
Reputation: 909
If you package your log file with your lambda code (or add it in the AWS console to the lambda), you will be able to access it directly.
Then you can open it with the usual usage of open.
Another option will be to use S3 and boto3.
Upvotes: 1