Skip to content

emind-systems/ec2-instances-tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

ec2-instances-tracker - The only way to stay in control of your EC2 resources

  1. The script monitors and report EC2 instances status changes, that means that every time it detect a change in the instance state it writes the change to Syslog.
  2. The script also save the entire EC2 inventory to a csv file and can send it by mail, that means that you can configure it to send you an email with all your EC2 servers list

Usage:

    Usage: ./ec2-instances-tracker.sh -O <aim-key> -W <aws-secret> [-i <path to save inventory-file> -m <e-mail address to send the inventory file to>]

In crontab:

0 13 * * * /path/to/ec2-instances-tracker/ec2-instances-tracker.sh -O <aim-key> -W <aws-secret> -i /tmp/$(date +\%Y-\%M-\%d_\%H-\%M-\%S) -m "user@mail.com user2@mail.com"

Output:

    ec2-instances-tracker: Region=ec2.eu-west-1.amazonaws.com Conf=current InstanceID=i-8ac90bc7 State=stopped SecGrp=emind-europe Type=m1.small AZ=eu-west-1b PubIP=(nil)PrivIP=(nil) VpcID=(nil) SubnetID=(nil)
    
    If -i is set, an inventory csv file containing all instances

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages