mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-22 13:58:00 +00:00
[æws] Add aws_subnet function
This commit is contained in:
parent
272528b439
commit
65e8ba0596
@ -59,6 +59,12 @@ function aws_vpc {
|
||||
--query 'Vpcs[*].{id:VpcId,cidr:CidrBlock,tag:Tags[0].Value}'
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
function aws_ag {
|
||||
local profile=$(_get_aws_profile)
|
||||
aws autoscaling describe-auto-scaling-groups --profile $profile --output ${_aws_output} \
|
||||
|
Loading…
Reference in New Issue
Block a user