Git Product home page Git Product logo

tagger's Introduction

Tagger

build codecov
build codecov
build codecov

About

This project contains taggercore, taggercli and taggerlambda

Taggercli helps with two main use cases:

  • finding resources in your AWS account and compare it to a certain tagging schema
  • applying a tagging schema to resources

Taggerlambda automates your tagging process by scanning your AWS account periodically and applying tags.

Taggercore provides utility classes for scanning an AWS account and tagging resources.

Please take a look at the individual README files for further information.

Contribution

Please feel free to contribute to this project. Any help would be gladly appreciated.

tagger's People

Contributors

tobhai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

tagger's Issues

Support multiple AWS accounts or multiple configs

I love the project, I ran it and was quite surprised by the results
Using AWS console is pretty terrible experience, and without 10,000s lines of code for AWS Config Custom Rules most of the output of this tool is hidden from users!

That is to say, this simple tool saves me writing all those AWS Config custom rules!

I have a plan to produce 1000s lines of JSON for SCP, and there is no way I am going to write that by hand, so I am making a generator to produce the desired SCPs - but to code that I need to get a handle on our tags used across the organisation on all of our accounts

The only way to use this tool is to use the hardcoded config path ~/.tagger/config.ini which supports reporting on a single account, and to make this tool support multiple accounts I need to run tagger in sequence per account by programmatically creating this hardcoded config file before running tagger each time - not ideal
This is even less trivial than explained because our access is via assume-role (best practice) and tagger doesn't support IAM Roles.. meaning we need to run a separate script to prepare the ~/.aws/config with the session needed for tagger in advance also, and the session is limited to 1 hour making that other script a just-in-time execution for tagger AND tagger still may fail if it runs longer than 1 hour (which it did over night due to API rate limits)

All the above challenges are easily addressed by adding simple boto3 iam role support and a tagger config per execution. specifically:

  • support -c | --config-path cli argument, instead of hardcoding TAGGER_PATH and FILE_PATH
  • support IAM Role
  • support graceful IAM Role expiry and re-assume

These really just are basic things that need to be done to make tagger usable in any situation with more than a single AWS account (any AWS Organizations would have many aws accounts)

I have limited time, but I can provide limited help if these are features you want. maybe get a PR started and add in a draft of these features

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.