Mar 29, 2023
Great question.
TLDR: By automating it with a simple script.
Detailed response : I have written another blog for exactly this, check it out here (https://postscripts.medium.com/how-to-reduce-lambda-log-retention-duration-with-a-simple-script-for-cloudwatch-logs-and-save-cost-9e79882a8063)