Skip to content

Fraham/CloudWatchLogGroupChecker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CloudWatch Log Group Checker

Makes sure that all the CloudWatch log groups have a retention policy.

Required Tools

  • Terraform
    • Uses the AWS provider so credentials are required.
  • PowerShell
    • Runs the deployment script

How the system works

  1. In the deployments folder is a script deployToAws.ps1, it takes the parameters s3BucketName, appVersion, notificationTopic, cloudWatchAlarmTopic.
  2. The script will zip up the scripts in src\scripts\ and the dependencies in src\dependencies\. These are the files that run inside the lambda.
  3. Then terraform runs over the system and creates all the components in AWS.
  4. When the lambda is ran, it collects all the log groups in the region and does a check to make sure they all have a retention policy.
  5. If any of the groups don't have a retention policy it will then update the group to give it the default retention policy.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published