Giter Site home page Giter Site logo

loureirovinicius / cleanup Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 35 KB

Cleanup is a tool designed to accomplish effective costs on Cloud Providers (AWS, GCP, etc...) without wasting money on unused resources - an empty Load Balancer, for example.

Go 100.00%
aws finops

cleanup's Introduction

Cleanup (Cloud Provider Sanitization tool)

Cleanup is a tool designed to accomplish effective costs on Cloud Providers (AWS, GCP, etc...) without wasting money on unused resources - an empty Load Balancer, for example. Such tool was thought to be one of the greatest allies in a FinOps culture for its simplicity, efficiency and security. Everything can be packaged into a single binary that can run on serverless structures, pipelines and even manually. Contracts were established through interfaces so it could also be expanded to other providers and resources, so you're highly encouraged to contribute with it since the codebase is pretty simple.

Supported resources:

Provider Resource Validation method
AWS eni Checks if ENI status is "available"
AWS eip Checks if EIP has an association ID
AWS ebs Checks if EBS disk has its state as "Available" and if tag "cleanup-ignore" equals to "true"
AWS targetGroup Checks if TargetGroup has no LoadBalancer attached
AWS loadBalancer Checks if LoadBalancer has no Listener attached

Usage:

  1. Populate the configuration file as required:

config.yaml

aws:
  region: # AWS Region
  authentication:
    profile:
      name: # AWS Profile name (optional)
      path: # AWS Config file path (optional)
    credentials:
      access_key: # AWS Access Key (optional)
      secret_key: # AWS Secret Key (optional)
  1. Compile it using Docker or Go:

    • Docker (TBD)

        docker run --rm --mount type=bind,source=$(pwd),target=/app -w /app golang:alpine go build -o cleanup cmd/main.go
    • Go

        go build -o cleanup ./cmd/main.go
  2. Use it:

cleanup list --service targetGroup
cleanup validate --service targetGroup
cleanup delete --service targetGroup

cleanup's People

Contributors

loureirovinicius avatar

Watchers

 avatar  avatar

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.