From 236907f8af729d6d459ad0437cb9d968c3669cbd Mon Sep 17 00:00:00 2001 From: dcarrillo Date: Tue, 20 Nov 2018 17:19:28 +0100 Subject: [PATCH] Fix aws_ebs function at AWS module --- 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 9fd7beb..7b52357 100644 --- a/modules/aws/init.zsh +++ b/modules/aws/init.zsh @@ -30,7 +30,8 @@ function aws_i { } function aws_ebs { - aws ec2 describe-volumes ---profile $profile --output ${_aws_output} \ + local profile=$(_get_aws_profile) + aws ec2 describe-volumes --profile $profile --output ${_aws_output} \ --query 'Volumes[*].{id:VolumeId,tag:Tags[0].Value,at:Attachments[0].InstanceId,size:Size}' }