Skip to content

generate a human readable list of most popular AWS ami images used for running instances.

License

Notifications You must be signed in to change notification settings

egidijus/top-ami

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

top-ami

Print out a json list of most popular AWS AMIs used by you running instances.

How ?

Make will install all the packages in a virtual environment and run top-ami

Run make

More details on how

Prerequisites:

  • python3x
  • boto3
  • argparse
  • pip
  • virtualenv
  • aws credentials configured

You can do things the difficult way and install packages from pip-requirements.txt

pip install -r pip-requirements.txt

Then you should be able to simply run

python top-ami.py profile

The only argument top-ami accepts, is the "profile" for aws credentials. By default, top-ami will always use default profile.

example output

./top-ami.py prod

[
  {"creation_date": "2020-01-13:01:00.000Z", "ami_id": "ami-66666666", "count": 5, "description": "super special ami"},
  {"creation_date": "2020-01-13:01:00.000Z", "ami_id": "ami-66666666", "count": 3, "description": "super special ami"},
  {"creation_date": "2020-01-13:01:00.000Z", "ami_id": "ami-66666666", "count": 2, "description": "super special ami"},
  {"creation_date": "2020-01-13:01:00.000Z", "ami_id": "ami-66666666", "count": 1, "description": "super special ami"}
]

About

generate a human readable list of most popular AWS ami images used for running instances.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published