]> git.bundesbrandschatzamt.de Git - emacsconfig.git/commitdiff
snippets: new keywords for aws.
authorAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Fri, 8 Apr 2016 12:00:16 +0000 (14:00 +0200)
committerAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Fri, 8 Apr 2016 12:00:16 +0000 (14:00 +0200)
- shorter keywords for some aws eshell snippets.

snippets/eshell-mode/aws-ec2-get-instances
snippets/eshell-mode/aws-ec2-start-stop-instance
snippets/eshell-mode/aws-elb-get-list
snippets/eshell-mode/aws-emr-list-clusters
snippets/eshell-mode/aws-route53-list-hosted-zones

index dc6711704b76578bad7cfaff1b598ef49e23d68c..d0b133f6988fb35138a895ebbd416e1b87ae439e 100644 (file)
@@ -1,5 +1,5 @@
 # -*- mode: snippet -*-
 # name: aws-ec2-get-instances
-# key: aws-ec2-get-instances
+# key: ec2-ls
 # --
 aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value "\$\{REGION\}" bba-aws-regions)}} ec2 describe-instances --query 'Reservations[].Instances[].[join(\`,\`,Tags[?Key==\`Name\`].Value),join(\`,\`,Tags[?Key==\`Schedule\`].Value),InstanceId, State.Name, PublicDnsName, InstanceType,Placement.AvailabilityZone,LaunchTime]' --output ${4:$$(yas-choose-value '("text" "table" "json"))} $0
index 56546997732bb394b512d685b1190416bb483e69..aa1c9e47f14183aafb052b625c198d9b73a126a3 100644 (file)
@@ -1,5 +1,5 @@
 # -*- mode: snippet -*-
 # name: aws-ec2-start-stop-instance (yank)
-# key: aws-ec2-start_stop-instance
+# key: ec2-start
 # --
 aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value bba-aws-regions)}} ec2 ${4:$$(yas-choose-value '("start-instances" "stop-instances"))} --instance-ids ${5:`(yank)`} $0
\ No newline at end of file
index 294ddc9263923c5cd956be9facc709d181107873..a57f49311cd2fe462708a28b5583fe4199cbef0c 100644 (file)
@@ -1,5 +1,5 @@
 # -*- mode: snippet -*-
 # name: aws-elb-get-list
-# key: aws-elb-get-list
+# key: elb-ls
 # --
 aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value bba-aws-regions)}} elb describe-load-balancers --query "reverse(sort_by(LoadBalancerDescriptions, &CreatedTime)[].[LoadBalancerName, CreatedTime])" --output ${4:$$(yas-choose-value '("text" "table" "json"))} $0
\ No newline at end of file
index b8a553f104d56a9cab53a0ae99f9853b4aca473b..67c332df4731376732a645df4df898146219a54a 100644 (file)
@@ -1,5 +1,5 @@
 # -*- mode: snippet -*-
 # name: aws-emr-list-clusters
-# key: aws-emr-list-clusters
+# key: emr-ls
 # --
 aws --profile=${1:$$(yas-choose-value '("prod" "test"))} --region=${2:$$(yas-choose-value "\$\{REGION\}" bba-aws-regions)} emr list-clusters --active --query 'Clusters[*].{ID: Id, NAME: Name}' --output ${5:$$(yas-choose-value '("text" "table" "json"))} $0
\ No newline at end of file
index 145558c4c8dd9f52b21734d6fac2aa0b298a549c..68c60620e07efa487d1a80e6ab63db4b4db9704f 100644 (file)
@@ -1,5 +1,5 @@
 # -*- mode: snippet -*-
 # name: aws-route53-list-hosted-zones
-# key: aws-route53-list-hosted-zones
+# key: r53-ls
 # --
 aws --profile=${1:$$(yas-choose-value '("prod" "test"))} route53 list-hosted-zones --query 'HostedZones[].[Id, Name]' --output ${5:$$(yas-choose-value '("text" "table" "json"))} $0
\ No newline at end of file