From d2832051f7ca02875b39b778c48a0ab28fd9858c Mon Sep 17 00:00:00 2001 From: dcarrillo Date: Wed, 26 Feb 2020 18:58:12 +0100 Subject: [PATCH] [aws] Improve output of aws_subnets function --- modules/aws/init.zsh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/aws/init.zsh b/modules/aws/init.zsh index 7526a09..bd6d2bc 100644 --- a/modules/aws/init.zsh +++ b/modules/aws/init.zsh @@ -62,7 +62,8 @@ function aws_vpc { function aws_subnets { local profile=$(_get_aws_profile) aws ec2 describe-subnets --profile $profile --output text \ - --query 'Subnets[].[Tags[?Key==`Name`] | [0].Value, SubnetId, VpcId, CidrBlock]' | sort -k1 + --query 'Subnets[].[Tags[?Key==`Name`] | [0].Value, SubnetId, VpcId, CidrBlock]' \ + | sort -k1 | column -t } function aws_ag {