From bdb1aace1ba20c223cd17d0647cabb4864f9b9a0 Mon Sep 17 00:00:00 2001 From: Andreas Gerler Date: Mon, 11 Jan 2016 21:18:43 +0100 Subject: [PATCH] snippets: aws-ec2-get-instances - yas-choose-value added bba-aws-regions Signed-off-by: Andreas Gerler --- snippets/eshell-mode/aws-ec2-get-instances | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/eshell-mode/aws-ec2-get-instances b/snippets/eshell-mode/aws-ec2-get-instances index 631928a6..cd813f81 100644 --- a/snippets/eshell-mode/aws-ec2-get-instances +++ b/snippets/eshell-mode/aws-ec2-get-instances @@ -2,4 +2,4 @@ # name: aws-ec2-get-instances # key: aws-ec2-get-instances # -- -aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=\$\{REGION\}} ec2 describe-instances --query 'Reservations[].Instances[].[join(\`,\`,Tags[?Key==\`Name\`].Value),join(\`,\`,Tags[?Key==\`Schedule\`].Value),InstanceId, State.Name, PublicDnsName, InstanceType,Placement.AvailabilityZone]' --output ${3:$$(yas-choose-value '("text" "table" "json"))} $0 \ No newline at end of file +aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value "\$\{REGION\}" bba-aws-regions)}} ec2 describe-instances --query 'Reservations[].Instances[].[join(\`,\`,Tags[?Key==\`Name\`].Value),join(\`,\`,Tags[?Key==\`Schedule\`].Value),InstanceId, State.Name, PublicDnsName, InstanceType,Placement.AvailabilityZone]' --output ${4:$$(yas-choose-value '("text" "table" "json"))} $0 \ No newline at end of file -- 2.47.3