This blog post (Example 4: Configure Lambda Log Groups) talks about setting the log retention for all the log groups through aspects.