TL;DR
This Terraform based solution automatically sets retention periods for CloudWatch Log Groups as they’re created across your entire AWS organization. No more manual cleanup or forgetting to set retention periods! Just deploy it once in your management account and forget about it. Made this solution in about 8 hours thanks to Cursor – The AI Code Editor !
Check it out on Github here: main-salman/aws-org-wide-log-retention-policy



