From: Andreas Gerler Date: Fri, 18 Dec 2015 15:44:24 +0000 (+0100) Subject: yasnippet eshell-mode: add aws-ec2-get-instances X-Git-Url: http://git.bundesbrandschatzamt.de/?a=commitdiff_plain;h=d8a98a8d2f435ad8e9ea68285d864292be11fc29;p=emacsconfig.git yasnippet eshell-mode: add aws-ec2-get-instances - added awc cli ec2 describe-instances. output=text can be used for org tables in literate devops. --- diff --git a/snippets/eshell-mode/aws-ec2-get-instances b/snippets/eshell-mode/aws-ec2-get-instances new file mode 100644 index 00000000..fe9aed77 --- /dev/null +++ b/snippets/eshell-mode/aws-ec2-get-instances @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# 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),InstanceId, State.Name, PublicDnsName, InstanceType,Placement.AvailabilityZone]' --output ${3:$$(yas-choose-value '("text" "table" "json"))} $0 \ No newline at end of file