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

Add describe_ebs function to AWS module

This commit is contained in:
dcarrillo 2018-11-20 15:58:04 +01:00
parent a09155f990
commit 108392b503

View File

@ -29,6 +29,11 @@ function aws_i {
InstanceType, VpcId, InstanceId, Placement.AvailabilityZone, PrivateIpAddress, PublicIpAddress]' InstanceType, VpcId, InstanceId, Placement.AvailabilityZone, PrivateIpAddress, PublicIpAddress]'
} }
function aws_ebs {
aws ec2 describe-volumes ---profile $profile --output ${_aws_output} \
--query 'Volumes[*].{id:VolumeId,tag:Tags[0].Value,at:Attachments[0].InstanceId,size:Size}'
}
function aws_elb { function aws_elb {
local profile=$(_get_aws_profile) local profile=$(_get_aws_profile)
aws elb describe-load-balancers --profile $profile --output ${_aws_output} \ aws elb describe-load-balancers --profile $profile --output ${_aws_output} \