From: Andreas Gerler Date: Fri, 8 Apr 2016 12:00:16 +0000 (+0200) Subject: snippets: new keywords for aws. X-Git-Url: http://git.bundesbrandschatzamt.de/?a=commitdiff_plain;h=2c58aecea19e628cb9b4bb00a49dd51f8dc22d94;p=emacsconfig.git snippets: new keywords for aws. - shorter keywords for some aws eshell snippets. --- diff --git a/snippets/eshell-mode/aws-ec2-get-instances b/snippets/eshell-mode/aws-ec2-get-instances index dc671170..d0b133f6 100644 --- a/snippets/eshell-mode/aws-ec2-get-instances +++ b/snippets/eshell-mode/aws-ec2-get-instances @@ -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 diff --git a/snippets/eshell-mode/aws-ec2-start-stop-instance b/snippets/eshell-mode/aws-ec2-start-stop-instance index 56546997..aa1c9e47 100644 --- a/snippets/eshell-mode/aws-ec2-start-stop-instance +++ b/snippets/eshell-mode/aws-ec2-start-stop-instance @@ -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 diff --git a/snippets/eshell-mode/aws-elb-get-list b/snippets/eshell-mode/aws-elb-get-list index 294ddc92..a57f4931 100644 --- a/snippets/eshell-mode/aws-elb-get-list +++ b/snippets/eshell-mode/aws-elb-get-list @@ -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 diff --git a/snippets/eshell-mode/aws-emr-list-clusters b/snippets/eshell-mode/aws-emr-list-clusters index b8a553f1..67c332df 100644 --- a/snippets/eshell-mode/aws-emr-list-clusters +++ b/snippets/eshell-mode/aws-emr-list-clusters @@ -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 diff --git a/snippets/eshell-mode/aws-route53-list-hosted-zones b/snippets/eshell-mode/aws-route53-list-hosted-zones index 145558c4..68c60620 100644 --- a/snippets/eshell-mode/aws-route53-list-hosted-zones +++ b/snippets/eshell-mode/aws-route53-list-hosted-zones @@ -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