'Read local JSON file from AWS lambda
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
Solution 1:[1]
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.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Floh |
