GithubHelp home page GithubHelp logo

lendi-au / stackjanitor Goto Github PK

View Code? Open in Web Editor NEW
36.0 5.0 2.0 1.82 MB

StackJanitor is a serverless, event-driven stack cleanup tool.

License: MIT License

TypeScript 100.00%
aws cloudformation cfn devops-tools devops infrastructure serverless

stackjanitor's People

Contributors

ameenrj avatar andrew-antony avatar ashlovell avatar dependabot[bot] avatar edify42 avatar joleneyu avatar jordan-simonovski avatar lendi-luizglingani avatar luizfelipepg avatar paxmarc avatar perception30 avatar tigertopher avatar vsubram95 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

ameenrj joleneyu

stackjanitor's Issues

Slack Support

Is your feature request related to a problem? Please describe.
Not directly related to a problem.

Describe the solution you'd like
To make stack deletion visible to everyone, we want to set up slack notifications to a channel that can be picked up from cloudformation stack tags. This is so that every team can get notifications to their own relevant channel. We should also probably support a default channel of sorts notifying users of the deletion, and maybe include all of the tags associated with that stack.

Update stackjanitor to include a scheduled lambda which periodically scans your AWS account for old stacks

Is your feature request related to a problem? Please describe.
We found that stack janitor can fail in our environment sometimes which results in stacks not cleaning up properly.

We've since introduced some monitoring into our environment to see when this happens, but we'd like a fallback mechanism which can remove stacks older than a certain date with the stackjanitor:enabled tag on the stack.

Describe the solution you'd like

  • Update the StackJanitor code base with the new lambda that can scan the AWS cloudformation stacks, filtering on the stackjanitor enabled tag and a Created/Update timestamp checker.
  • Have an optional schedule input (via opt) on the serverless.yml file to define the max older than days for when to delete the stacks. By default we'll have the schedule running once a day.

Additional context
Write some tests and ensure we can run the StackJanitor lambdas without the extra function if it's not explicitly defined to run.

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.