Last updated:
0 purchases
awsvoyeur 0.1.2
Quick n dirty CLI for checking [AWS] inventorySpecifically design for my own personal workflow. [AWS]: http://aws.amazon.com/Here Be Dragons---------------If you're doing something serious, you should look into these betteralternatives:* https://github.com/DrGonzo65/ec2-cli-tools - very similar package that lets you glob* https://github.com/mattrobenolt/ec2 - lets you query instances using django- orm-like syntax* awscli - official aws cliIf you're still here, here's the deal: This is a CLI for querying aws for whatinstances are running and display them in a table with the same columns I haveenabled in the web interface. You can sort by specifying the headers: voyeur name voyeur launch_time voyeur environmentYou can filter similarily like: voyeur environment=productionOr go crazy (show production foo sites ordered by launch time): voyeur environment=production site=foo launch_timeI picked the columns and names so that line lengths are under 120 columns;which is how wide my terminal is.But Wait, There's More----------------------If you make the first argument `elb` or `rds`, you can list your elastic loadbalancers and databases too. You can also do add `ec2` if you like beingconsistent.Example-------### List EC2```bashname environment site ip private_ip launch_time id--------------------- ------------- ------- -------------- -------------- ------------- ----------hodor-weg prod groot 54.85.94.132 10.0.0.2 2014-06-17 i-27fghb69groot-elasticsearch prod hodor 10.0.0.1 2014-08-08 i-abcdcaz7```### List ELB```bashYou can't use 'macro parameter character #' in math modeYou can't use 'macro parameter character #' in math mode voyeur rdsid uri---------- -------------------------------------------------------------------------------groot-db postgres://[email protected]:5432/groothodor-db postgres://[email protected]:5432/groot```## Installation pip install aws-voyeur## UsageConfigure boto following [the official instructions](http://boto.readthedocs.org/en/latest/boto_config_tut.html).A basic configuration would just involve setting the `AWS_ACCESS_KEY_ID`,`AWS_SECRET_ACCESS_KEY` environment variables.## AWS IAM PolicyThis library requires the Describe* permissions. You can use use the "Read OnlyAccess" policy template, or you can make your own with at least thesepermissions:```json{ "Statement": [ { "Action": [ "ec2:Describe*", "elasticloadbalancing:Describe*", "rds:Describe*" ], "Effect": "Allow", "Resource": "*" } ]}```
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.