- Aliases to handle finding and connecting to ec2 instances over SSM so you're not using ssh and you don't have to remember the syntax
- Add to your aliases (e.g. ~/.zshrc.local, ~/.bashrc, ~/.bash_profile, or in your full aliases section), source (new terminal session should do the trick!)
- Ok, here goes.
ec2
- prompt that will allow you to enter a name or part of a name (ignores case) and return all hosts in the set of regions listed so you can grab the Instance ID and use it for whatever (including the laterssm
command)