4 ms·
I agree that it can be an anti-pattern. However there is stuff like this: alias ec2ls='aws ec2 describe-instances --query '\''Reservations[].Instances[].[Tags
by outworlder 9y ago
I agree that it can be an anti-pattern.
However there is stuff like this:
alias ec2ls='aws ec2 describe-instances --query '\''Reservations[].Instances[].[Tags[?Key==`Name`].Value|[0],State.Name,InstanceId,PrivateIpAddress,PublicIpAddress]'\'' --output text | column -t | sort'
I could try to remember it and type every time. But why? Sometimes all I want to do is list instances and grep for something quickly. If I can 'ls' for files, why would 'ls' for AWS (or openstack or what have you) be any different?