Top best practices you should follow when building with AWS Lambda
4 min readMar 10, 2023
Set CloudWatch log retention policies
Lambda creates a log group that matches the name of your function in this format: /aws/lambda/[lambda name]. All log streams in this group persist forever by default. You pay for every byte written to the log group. These costs pile up forever (at $0.53/GB) unless you set a retention…