From 2736cdb97bf140b918002284462e23b052d4fef9 Mon Sep 17 00:00:00 2001 From: Andreas Gerler Date: Fri, 8 Jan 2016 15:56:50 +0100 Subject: [PATCH] snippet aws-ec2-get-instances - added "--region" for use in loops. --- 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 8bf8c48e..631928a6 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"))} ec2 describe-instances --query 'Reservations[].Instances[].[join(\`,\`,Tags[?Key==\`Name\`].Value),join(\`,\`,Tags[?Key==\`Schedule\`].Value),InstanceId, State.Name, PublicDnsName, InstanceType,Placement.AvailabilityZone]' --output ${2:$$(yas-choose-value '("text" "table" "json"))} $0 \ No newline at end of file +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 -- 2.47.3