Skip to content

thutrang-nguyen/ec2_info

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

Build Status Join the chat at https://gitter.im/ec2_info/Lobby

  • EC2 info API
  • dependencies:

Usage

Describe Instances

  • source .env

  • region default value us-east-1

  • instance-state-name default value running

  • state default value active

  • describe all running instances in a region

localhost/describe
localhost/describe?region=us-west-2&instance-state-name=running
localhost/describe?region=us-west-2&instanceIDs=i-xxx
localhost/describe?region=us-west-2&instanceIDs=i-xxx,i-yyy
  • check for active reserved instances
localhost/describe?reserved=1
localhost/describe?reserved=1&state=retired

Get EC2 metrics

localhost/utilization?instanceID=xxxxxx
localhost/utilization?instanceID=xxxxxx&MetricName=CPUUtilization

Get Ondemand EC2 prices

localhost/price

Todo

  • rate limiting
  • add caching layer
  • update UI components
  • export to JSON format

References

Contact

  • Binh Nguyen

About

A tool to make my life easier

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 96.9%
  • Shell 3.1%