Usage:
$ ec2-login-amazon <tag>
- Aside from the AWS CLI tools, you'll need jq: https://stedolan.github.io/jq/
- If multiple instances have the tag you specify, the first one will be chosen
- There are separate commands for Amazon Linux and Ubuntu because, aside from looking at the AMI ID, there's no way to know which user name to use