List AWS EC2 instances.
Configure your AWS credentials in the manner of aws-cli, and type:
$ ec2ls
To specify profile in ~/.aws/credentials:
$ ec2ls -p [profile name]
To add more information:
$ ec2ls -k launch_time,image_id
To show available keys:
$ ec2ls -l
This tool uses AWS SDK for Go. Your credentials are loaded by the library default priority unless you specify a profile name in AWS credentials.
By following steps:
$ go get github.com/nsaeki/ec2ls
- Fork it ( https://github.com/nsaeki/ec2ls/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request