Publish Amazon CloudWatch metrics to a CSV file using AWS Lambda
Link to the online tutorial can be found here
For this project, I went rogue and did it my own way. I took the following steps:
1. I created a lambda function using python, I also created an event
2. I confirmed a log group had been created on Cloud watch
3. I went to github to search for a metrics log reader repo and copied it to my IDE. I customized the logGroupName and logStreamName to what was registered in the cloudwatch. Link to the python code I used can be found here
4. I ran the code and a report file was immediately created in csv, html and json formats
P.S: To be successful in this project, you have to ensure that Python is PROPERLY installed and running (if your chosen programming language is python). Make sure the boto3 and pandas functions are also installed and properly imported.
End of story!
Disclaimer: This article describes my personal journey and recommendations made are merely suggestions.
Please feel free to share your thoughts, feedback or criticisms. Look forward to hearing from you