]> git.bundesbrandschatzamt.de Git - emacsconfig.git/commitdiff
snippets/eshell-mode
authorAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Wed, 6 Jan 2016 10:48:13 +0000 (11:48 +0100)
committerAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Wed, 6 Jan 2016 10:48:13 +0000 (11:48 +0100)
- fixing aws-ec2-get-instances
- adding aws-ec2-start-stop-instance

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

index fe9aed77df96eb8ee7a847a31ea8533958190d04..8bf8c48e3133503d429668564f32c9c146dfca3d 100644 (file)
@@ -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),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"))} 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
diff --git a/snippets/eshell-mode/aws-ec2-start-stop-instance b/snippets/eshell-mode/aws-ec2-start-stop-instance
new file mode 100644 (file)
index 0000000..8d29414
--- /dev/null
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: aws-ec2-start-stop-instance
+# key: aws-ec2-start_stop-instance
+# --
+aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ec2 ${2:$$(yas-choose-value '("start-instances" "stop-instances"))} --instance-ids ${3:`(yank)`} $0
\ No newline at end of file