aboutsummaryrefslogtreecommitdiff
path: root/templates/.zsh/functions/ec2.zsh
blob: dfaf8e1280a136613a8954ecdb958c5ed12cdacb (plain)
1
2
3
4
5
6
function ec2() {
	if [[ "$#" == "0" ]]; then
		aws ec2 describe-instances | jq --raw-output 'include "aws"; getInstanceMetadata' | column -t -s $'\t' | sort
	fi
}