From: Andreas Gerler Date: Mon, 11 Jan 2016 20:18:43 +0000 (+0100) Subject: snippets: aws-ec2-get-instances X-Git-Url: http://git.bundesbrandschatzamt.de/?a=commitdiff_plain;h=bdb1aace1ba20c223cd17d0647cabb4864f9b9a0;p=emacsconfig.git snippets: aws-ec2-get-instances - yas-choose-value added bba-aws-regions Signed-off-by: Andreas Gerler --- 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