Dedicated to Terry A. Davis. The smartest programmer that's ever lived.
Cloud Elephant is a tool providing a simple CLI interface for finding idle and unused resources in public clouds (AWS, Azure).
Supports:
- AWS ELB (Elastic Load Balancer)
- AWS EIP (Elastic IP Addresses)
- AWS EBS (Elastic Block Store)
- AWS AMI (Machine Images)
- AWS RDS (Relational Database Service) planned
- AWS EC2 (Elastic Compute Cloud) planned
- Azure Load Balancer
- Azure Managed Disk planned
Yes.
Use homebrew:
$ brew tap aint/cloudelephant-tap
$ brew install cloudelephant
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 a binary from the GitHub Releases tab.
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
$ ce [unused|idle] [elb|elbv2|eip|ami|ebs|azlb]
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
Find available (unattached) EBS and EBS that are attached to stopped EC2 instances.
$ ce unused ebs
Find unused Amazon Machine Images (no instances are running from AMI).
$ ce unused ami
Find Elastic IP Addresses that is not associated with a running EC2 instance or an Elastic Network Interface.
$ ce unused eip
Find Load Balancers which don't have any associated backend pool instances.
$ ce unused azlb