From 3dbf73565c90a3d403e074ca901b88b52add271c Mon Sep 17 00:00:00 2001 From: Andreas Gerler Date: Wed, 6 Jan 2016 11:48:13 +0100 Subject: [PATCH] snippets/eshell-mode - fixing aws-ec2-get-instances - adding aws-ec2-start-stop-instance --- snippets/eshell-mode/aws-ec2-get-instances | 2 +- snippets/eshell-mode/aws-ec2-start-stop-instance | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 snippets/eshell-mode/aws-ec2-start-stop-instance diff --git a/snippets/eshell-mode/aws-ec2-get-instances b/snippets/eshell-mode/aws-ec2-get-instances index fe9aed77..8bf8c48e 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"))} 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 index 00000000..8d29414d --- /dev/null +++ b/snippets/eshell-mode/aws-ec2-start-stop-instance @@ -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 -- 2.47.3