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:
parent
65e8ba0596
commit
d2832051f7
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user