]> git.bundesbrandschatzamt.de Git - emacsconfig.git/commitdiff
yasnippet eshell-mode: add aws-ec2-get-instances
authorAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Fri, 18 Dec 2015 15:44:24 +0000 (16:44 +0100)
committerAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Fri, 18 Dec 2015 15:44:24 +0000 (16:44 +0100)
- added awc cli ec2 describe-instances. output=text can be used for org
  tables in literate devops.

snippets/eshell-mode/aws-ec2-get-instances [new file with mode: 0644]

diff --git a/snippets/eshell-mode/aws-ec2-get-instances b/snippets/eshell-mode/aws-ec2-get-instances
new file mode 100644 (file)
index 0000000..fe9aed7
--- /dev/null
@@ -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