Giter Site home page Giter Site logo

aws_log_cleaner's Introduction

  • ๐Ÿ‘‹ Hi, Iโ€™m @daniebker
  • ๐Ÿ‘€ Iโ€™m interested in fitness, photography, and making games. These days I code mostly in TypeScript, but I have worked in java and C#.
  • ๐ŸŒฑ Iโ€™m currently re-learning C++ by building a roguelike using libtcod.
  • ๐Ÿ’ž๏ธ Iโ€™m not looking to collaborate on anything right now.

aws_log_cleaner's People

Contributors

betabandido avatar daniebker avatar samsanort avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

aws_log_cleaner's Issues

Output plan results as file

Output the result of a plan to a file so we can run a delete by reading the logs to delete from file. This would avoid having to hit the aws apis twice to get the same log groups. You could also remove some logs from a selection.

Handle case for deleting all logs

If you run the application specifying like so:

aws_log_cleaner -a -l ''

It will delete all log groups in a region in AWS. We should consider adding a warning prompting the user to confirm the action. We should also provide an option of forcing the delete without prompt by using a --force command.

Cleanup floating API Gateway logs

After an API gateway is deleted we can no longer find the log groups in Cloudwatch.

Loop through all API Gateway cloudwatch logs and find log groups where the corresponding api no longer exists. Add these at the end of a plan and delete as floating logs deemed safe to delete.

Add option to specify an AWS profile

Currently the application can either obtain AWS credentials from environment variables, or the shared credentials file. But, in the latter case it seems to be only capable of using the default profile.

It would be desirable to let users specify the AWS profile to use (and a region too) as a program argument.

Use include? instead of start_with? for API gateway names

Log groups are filtered by testing whether the log group name contains a string. But, for API gateways the behavior is different. They are filtered by whether their name starts with a given string. For consistency, API gateway should just check whether the string is contained in the name.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.