Skip to content

Lambda function to clean up log groups for deleted Lambda functions.

License

Notifications You must be signed in to change notification settings

gavincornwell/lambda-log-group-cleaner

Repository files navigation

Welcome

This repository contains a Lambda function for cleaning up orphaned Lambda Log Groups.

By default the function gets triggered at 11pm every night.

Prerequisites

  • NodeJS 8.10+ installed
  • AWS CLI configured with an IAM user with Administrator privileges
  • AWS SAM CLI installed
  • Mocha installed
  • ESLint installed

Setup

Create Build Assets Bucket

An S3 bucket is required to house all build and packaging outputs.

aws s3 mb s3://build-assets

Package

npm install
package.sh <build-assets-bucket-name>

Deploy

deploy.sh <stack-name>

About

Lambda function to clean up log groups for deleted Lambda functions.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published