Sha256: 77ea23736a0d6db80eedaf7a8ed32afce47cb8d1f2ee1932381c3fa079b1b7a1
Contents?: true
Size: 1.89 KB
Versions: 3
Compression:
Stored size: 1.89 KB
Contents
[![Build Status](https://travis-ci.org/daniebker/aws_log_cleaner.svg?branch=master)](https://travis-ci.org/daniebker/aws_log_cleaner) [![Build status](https://ci.appveyor.com/api/projects/status/0rn4dqa7wyr3cqh9?svg=true)](https://ci.appveyor.com/project/daniebker/aws-log-cleaner) [![Gem Version](https://badge.fury.io/rb/aws_log_cleaner.svg)](https://badge.fury.io/rb/aws_log_cleaner) # AwsLogCleaner A gem to clean up aws lambda and Api Gateway log groups that contain a search term. ## Installation Add this line to your application's Gemfile: ```ruby gem 'aws_log_cleaner' ``` And then execute: $ bundle Or install it yourself as: $ gem install aws_log_cleaner ## Usage ### Requirements * `AWS_SECRET_KEY` & `AWS_ACCESS_KEY` env variables must be set. OR * A credentials file must be present in `~\.aws` The application defaults to `eu-west-1` but this can be overridden using `AWS_REGION` environment variable, or by passing -r [--region] on the commandline. ### From the command line Get help by using: $ aws_log_cleaner -h Run the plan command in eu-west-1 where prefix like some_text. $ aws_log_cleaner -p -l 'some_text' -r 'eu-west-1' -k [ACCESS_KEY] -s [SECRET] ## Code Initialise a new LogCleaner ```ruby log_cleaner = AwsLogCleaner::AwsLogCleaner.new ``` Run a plan ```ruby log_cleaner.plan('some_text') ``` Or run a delete ```ruby log_cleaner.delete('some_text') ``` ## Development After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment. To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
aws_log_cleaner-0.2.1 | README.md |
aws_log_cleaner-0.2.0 | README.md |
aws_log_cleaner-0.1.8 | README.md |