Skip to content

aint/CloudElephant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

Cloud Elephant

Dedicated to Terry A. Davis. The smartest programmer that's ever lived.

Cloud Elephant

Cloud Elephant is a tool providing a simple CLI interface for finding idle and unused resources in public clouds (AWS, Azure).

Supports:

Is it any good?

Yes.

Installation

MacOS

Use homebrew:

$ brew tap aint/cloudelephant-tap
$ brew install cloudelephant

Build from sources

If you want the latest version, the recommended installation option is to use go get:

$ go get -u github.com/aint/CloudElephant

and add an alias:

$ alias ce=CloudElephant

Download from the Releases page

Download a binary from the GitHub Releases tab.

Configuration

In order to use Azure, you need to set the following environment variables:

  • AZURE_SUBSCRIPTION_ID
  • AZURE_TENANT_ID
  • AZURE_CLIENT_ID
  • AZURE_CLIENT_SECRET

Usage

$ ce [unused|idle] [elb|elbv2|eip|ami|ebs|azlb]

AWS ELB

Find classic ELB with no associated back-end instances.

$ ce unused elb

Find ELBv2 (Application, Network, Gateway) which associated target groups has no EC2 target instance registered.

$ ce unused elbv2

AWS EBS

Find available (unattached) EBS and EBS that are attached to stopped EC2 instances.

$ ce unused ebs

AWS AMI

Find unused Amazon Machine Images (no instances are running from AMI).

$ ce unused ami

AWS EIP

Find Elastic IP Addresses that is not associated with a running EC2 instance or an Elastic Network Interface.

$ ce unused eip

Azure Load Balancer

Find Load Balancers which don't have any associated backend pool instances.

$ ce unused azlb