Giter Club home page Giter Club logo

steampipe-mod-aws-thrifty's Introduction

AWS Thrifty Mod for Steampipe

An AWS cost savings and waste checking tool.

Run checks in a dashboard:

image

Or in a terminal:

image

Includes checks for:

  • Month to month swings in service cost from AWS Cost Explorer
  • Underused and oversized RDS Databases
  • Unused, underused and oversized EC2 Instances
  • Unused, underused and oversized EBS Volumes and Snapshots
  • CloudWatch Log Groups without retention policies
  • CloudWatch Log Streams with stale data
  • CloudFront Distribution pricing classes
  • Unused EMR Clusters with previous generation instances
  • Unused ECS Clusters
  • Stale DynamoDB Tables
  • Unused and underused Redshift Clusters
  • S3 Buckets without lifecycle policies
  • Unattached Elastic IPs
  • #TODO List

Getting started

Installation

Download and install Steampipe (https://steampipe.io/downloads). Or use Brew:

brew tap turbot/tap
brew install steampipe

Install the AWS plugin with Steampipe:

steampipe plugin install aws

Clone:

git clone https://github.com/turbot/steampipe-mod-aws-thrifty.git
cd steampipe-mod-aws-thrifty

Usage

Start your dashboard server to get started:

steampipe dashboard

By default, the dashboard interface will then be launched in a new browser window at https://localhost:9194. From here, you can run benchmarks by selecting one or searching for a specific one.

Instead of running benchmarks in a dashboard, you can also run them within your terminal with the steampipe check command:

Run all benchmarks:

steampipe check all

Run a single benchmark:

steampipe check benchmark.ec2

Run a specific control:

steampipe check control.instances_with_low_utilization

Different output formats are also available, for more information please see Output Formats.

Credentials

This mod uses the credentials configured in the Steampipe AWS plugin.

Configuration

Several benchmarks have input variables that can be configured to better match your environment and requirements. Each variable has a default defined in its source file, e.g., controls/rds.sp, but these can be overwritten in several ways:

  • Copy and rename the steampipe.spvars.example file to steampipe.spvars, and then modify the variable values inside that file

  • Pass in a value on the command line:

    steampipe check benchmark.ec2 --var=ec2_running_instance_age_max_days=90
  • Set an environment variable:

    SP_VAR_ec2_running_instance_age_max_days=90 steampipe check control.long_running_ec2_instances
    • Note: When using environment variables, if the variable is defined in steampipe.spvars or passed in through the command line, either of those will take precedence over the environment variable value. For more information on variable definition precedence, please see the link below.

These are only some of the ways you can set variables. For a full list, please see Passing Input Variables.

Contributing

If you have an idea for additional controls or just want to help maintain and extend this mod (or others) we would love you to join the community and start contributing.

Please see the contribution guidelines and our code of conduct. All contributions are subject to the Apache 2.0 open source license.

Want to help but not sure where to start? Pick up one of the help wanted issues:

steampipe-mod-aws-thrifty's People

Contributors

bigdatasourav avatar cbruno10 avatar dboeke avatar debabrat-git avatar e-gineer avatar joshrosen avatar khushboo9024 avatar misraved avatar sankeyraut avatar shivani1982 avatar subhajit97 avatar

Watchers

 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.