]> git.bundesbrandschatzamt.de Git - emacsconfig.git/commitdiff
yasnippets: added aws-ec2-get-instance-details
authorAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Fri, 18 Dec 2015 16:04:51 +0000 (17:04 +0100)
committerAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Fri, 18 Dec 2015 16:04:51 +0000 (17:04 +0100)
- assumes instance-id in kill buffer as it uses (yank)

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

diff --git a/snippets/eshell-mode/aws-ec2-get-instance-details b/snippets/eshell-mode/aws-ec2-get-instance-details
new file mode 100644 (file)
index 0000000..83d6e79
--- /dev/null
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: aws-ec2-get-instance-details
+# key: aws-ec2-get-instance-details
+# --
+aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ec2 describe-instances --instance-ids ${2:`(yank)`} $0
\ No newline at end of file