From: Andreas Gerler Date: Fri, 8 Jan 2016 14:56:50 +0000 (+0100) Subject: snippet aws-ec2-get-instances X-Git-Url: http://git.bundesbrandschatzamt.de/?a=commitdiff_plain;h=2736cdb97bf140b918002284462e23b052d4fef9;p=emacsconfig.git snippet aws-ec2-get-instances - added "--region" for use in loops. --- 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