---
title: "Discussion on \"Controlling CloudWatch Log Retention Period When Using Serverless Framework on AWS\" | Hashnode"
description: "Discussion on \"Controlling CloudWatch Log Retention Period When Using Serverless Framework on AWS\". The problem\nWhen creating Lambda functions with the serverless framework, CloudWatch logs are created and have a log retention period of \"never expire\" by default. This can get very expensive as the months go by, and you are paying to store these Clo..."
url: "https://hashnode.com/posts/controlling-cloudwatch-log-retention-period-when-using-serverless-framework-on-aws/62c03147e4246414d3d336ca"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Controlling CloudWatch Log Retention Period When Using Serverless Framework on AWS](https://blog.femilawal.com/controlling-cloudwatch-log-retention-period-when-using-serverless-framework-on-aws?utm_source=hashnode&utm_medium=feed)

The problem When creating Lambda functions with the serverless framework, CloudWatch logs are created and have a log retention period of "never expire" by default. This can get very expensive as the months go by, and you are paying to store these Clo...

Jul 2, 2022 · 3 min read · blog.femilawal.com  
Read the article

-   [#aws](https://hashnode.com/tag/aws)
-   [#aws-lambda](https://hashnode.com/tag/aws-lambda)
-   [#serverless](https://hashnode.com/tag/serverless)
-   [#cloudwatch](https://hashnode.com/tag/cloudwatch)

## Written by

[Femi Lawal](https://hashnode.com/@femi-lawal)

@femi-lawal

  
[View profile](https://hashnode.com/@femi-lawal)

Software Engineer

Sorry if my stuff isn't well structured, mostly just writing notes.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
