by John Lukach
One of the first questions is always: what logs do I have available?
https://github.com/jblukach/botoplus
I created a Jupyter Notebook that uses the botoplus
Python library to gather the state of CloudWatch Logs across an Amazon Web Services (AWS) Organization for every account and region.
Cost is calculated based on Standard and Infrequent access for the first 10 TB of data ingestion pricing.
Final calculations are outputs that include the following information:
Too often, Log Groups are automatically created without retention configured. Thus, I needed a way to enforce the retention policy. Does anyone ever clean up CloudWatch Logs?
The final botoplus
code example deletes empty Log Groups that are not protected from deletion.
/aws/lambda/aws-controltower-NotificationForwarder