1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-12-22 06:58:01 +00:00

[aws] Improve output of aws_subnets function

This commit is contained in:
Daniel Carrillo 2020-02-26 18:58:12 +01:00
parent 65e8ba0596
commit d2832051f7

View File

@ -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 {