From d33f2a24fba43b49af0bf48238eb9ec61385650f Mon Sep 17 00:00:00 2001 From: Andreas Gerler Date: Wed, 7 Feb 2018 15:11:52 +0100 Subject: [PATCH] update aws-snippets. Signed-off-by: Andreas Gerler --- .../aws-snippets-pkg.el | 3 - .../aws-snippets-20180111.001/aws-snippets.el | 276 ------------------ .../aws-snippets-autoloads.el | 10 +- .../aws-snippets-pkg.el | 7 + .../aws-snippets-20180204.522/aws-snippets.el | 197 +++++++++++++ .../snippets/eshell-mode/aws-ami-ls | 0 ...s-autoscaling-describe-auto-scaling-groups | 0 ...autoscaling-describe-launch-configurations | 0 ...oscaling-update-auto-scaling-group-min-max | 0 .../eshell-mode/aws-cloudformation-change-ls | 0 .../aws-cloudformation-create-change-set | 0 .../aws-cloudformation-describe-change-set | 0 .../aws-cloudformation-describe-stack | 0 .../aws-cloudformation-describe-stack-events | 0 .../eshell-mode/aws-cloudformation-ls | 1 + .../aws-cloudformation-validate-template | 0 .../eshell-mode/aws-cloudtrail-lookup-events | 0 .../eshell-mode/aws-ec2-delete-snapshot | 0 .../eshell-mode/aws-ec2-delete-volume | 0 .../aws-ec2-describe-instance-attribute | 0 .../aws-ec2-describe-instance-status | 0 .../eshell-mode/aws-ec2-describe-userdata | 0 .../eshell-mode/aws-ec2-get-console-output | 0 .../eshell-mode/aws-ec2-get-dns-names | 0 .../eshell-mode/aws-ec2-get-instance-details | 0 .../eshell-mode/aws-ec2-get-instance-volumes | 0 .../eshell-mode/aws-ec2-get-instances | 5 + .../aws-ec2-get-securitygroup-details | 0 .../aws-ec2-get-securitygroup-references | 0 .../eshell-mode/aws-ec2-get-securitygroups | 0 .../eshell-mode/aws-ec2-get-snapshot-details | 0 .../eshell-mode/aws-ec2-get-snapshots | 0 .../snippets/eshell-mode/aws-ec2-get-volumes | 0 .../eshell-mode/aws-ec2-get-volumes-unused | 0 .../eshell-mode/aws-ec2-instance-running | 0 .../eshell-mode/aws-ec2-list-instances | 0 .../snippets/eshell-mode/aws-ec2-list-subnets | 0 .../snippets/eshell-mode/aws-ec2-list-vpcs | 0 .../eshell-mode/aws-ec2-start-stop-instance | 0 .../eshell-mode/aws-ec2-volume-details | 0 .../aws-elb-describe-instance-health | 0 .../aws-elb-describe-load-balancer | 0 .../aws-elb-describe-load-balancer-attributes | 0 .../snippets/eshell-mode/aws-elb-get-list | 0 .../snippets/eshell-mode/aws-elb-search | 0 .../eshell-mode/aws-emr-describe-cluster | 0 .../eshell-mode/aws-emr-list-clusters | 0 .../snippets/eshell-mode/aws-filters | 0 .../snippets/eshell-mode/aws-logs-get-groups | 0 .../eshell-mode/aws-logs-set-retention | 0 .../snippets/eshell-mode/aws-policy-ls | 6 + .../aws-rds-describe-db-instance-details | 0 .../eshell-mode/aws-rds-describe-db-instances | 0 .../aws-rds-describe-db-parameter-groups | 0 .../eshell-mode/aws-rds-describe-parameters | 0 .../snippets/eshell-mode/aws-region-loop | 0 .../snippets/eshell-mode/aws-regions | 0 .../eshell-mode/aws-route53-list-hosted-zones | 0 .../aws-route53-list-resource-record-sets | 0 .../snippets/eshell-mode/aws-sns-ls | 0 .../snippets/eshell-mode/aws-support-describe | 0 .../snippets/eshell-mode/aws-support-ls | 0 .../snippets/shell-mode/.yas-parents | 0 elpa/aws-snippets-readme.txt | 1 + 64 files changed, 222 insertions(+), 284 deletions(-) delete mode 100644 elpa/aws-snippets-20180111.001/aws-snippets-pkg.el delete mode 100644 elpa/aws-snippets-20180111.001/aws-snippets.el rename elpa/{aws-snippets-20180111.001 => aws-snippets-20180204.522}/aws-snippets-autoloads.el (72%) create mode 100644 elpa/aws-snippets-20180204.522/aws-snippets-pkg.el create mode 100644 elpa/aws-snippets-20180204.522/aws-snippets.el rename elpa/{aws-snippets-20180111.001 => aws-snippets-20180204.522}/snippets/eshell-mode/aws-ami-ls (100%) rename elpa/{aws-snippets-20180111.001 => aws-snippets-20180204.522}/snippets/eshell-mode/aws-autoscaling-describe-auto-scaling-groups (100%) rename elpa/{aws-snippets-20180111.001 => aws-snippets-20180204.522}/snippets/eshell-mode/aws-autoscaling-describe-launch-configurations (100%) rename elpa/{aws-snippets-20180111.001 => aws-snippets-20180204.522}/snippets/eshell-mode/aws-autoscaling-update-auto-scaling-group-min-max (100%) rename elpa/{aws-snippets-20180111.001 => aws-snippets-20180204.522}/snippets/eshell-mode/aws-cloudformation-change-ls (100%) rename elpa/{aws-snippets-20180111.001 => aws-snippets-20180204.522}/snippets/eshell-mode/aws-cloudformation-create-change-set (100%) rename elpa/{aws-snippets-20180111.001 => aws-snippets-20180204.522}/snippets/eshell-mode/aws-cloudformation-describe-change-set (100%) rename elpa/{aws-snippets-20180111.001 => aws-snippets-20180204.522}/snippets/eshell-mode/aws-cloudformation-describe-stack (100%) rename elpa/{aws-snippets-20180111.001 => aws-snippets-20180204.522}/snippets/eshell-mode/aws-cloudformation-describe-stack-events (100%) rename elpa/{aws-snippets-20180111.001 => aws-snippets-20180204.522}/snippets/eshell-mode/aws-cloudformation-ls (68%) rename elpa/{aws-snippets-20180111.001 => aws-snippets-20180204.522}/snippets/eshell-mode/aws-cloudformation-validate-template (100%) rename elpa/{aws-snippets-20180111.001 => aws-snippets-20180204.522}/snippets/eshell-mode/aws-cloudtrail-lookup-events (100%) rename elpa/{aws-snippets-20180111.001 => aws-snippets-20180204.522}/snippets/eshell-mode/aws-ec2-delete-snapshot (100%) rename elpa/{aws-snippets-20180111.001 => aws-snippets-20180204.522}/snippets/eshell-mode/aws-ec2-delete-volume (100%) rename elpa/{aws-snippets-20180111.001 => aws-snippets-20180204.522}/snippets/eshell-mode/aws-ec2-describe-instance-attribute (100%) rename elpa/{aws-snippets-20180111.001 => aws-snippets-20180204.522}/snippets/eshell-mode/aws-ec2-describe-instance-status (100%) rename elpa/{aws-snippets-20180111.001 => aws-snippets-20180204.522}/snippets/eshell-mode/aws-ec2-describe-userdata (100%) rename elpa/{aws-snippets-20180111.001 => aws-snippets-20180204.522}/snippets/eshell-mode/aws-ec2-get-console-output (100%) rename elpa/{aws-snippets-20180111.001 => aws-snippets-20180204.522}/snippets/eshell-mode/aws-ec2-get-dns-names (100%) rename elpa/{aws-snippets-20180111.001 => aws-snippets-20180204.522}/snippets/eshell-mode/aws-ec2-get-instance-details (100%) rename elpa/{aws-snippets-20180111.001 => aws-snippets-20180204.522}/snippets/eshell-mode/aws-ec2-get-instance-volumes (100%) create mode 100644 elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-ec2-get-instances rename elpa/{aws-snippets-20180111.001 => aws-snippets-20180204.522}/snippets/eshell-mode/aws-ec2-get-securitygroup-details (100%) rename elpa/{aws-snippets-20180111.001 => aws-snippets-20180204.522}/snippets/eshell-mode/aws-ec2-get-securitygroup-references (100%) rename elpa/{aws-snippets-20180111.001 => aws-snippets-20180204.522}/snippets/eshell-mode/aws-ec2-get-securitygroups (100%) rename elpa/{aws-snippets-20180111.001 => aws-snippets-20180204.522}/snippets/eshell-mode/aws-ec2-get-snapshot-details (100%) rename elpa/{aws-snippets-20180111.001 => aws-snippets-20180204.522}/snippets/eshell-mode/aws-ec2-get-snapshots (100%) rename elpa/{aws-snippets-20180111.001 => aws-snippets-20180204.522}/snippets/eshell-mode/aws-ec2-get-volumes (100%) rename elpa/{aws-snippets-20180111.001 => aws-snippets-20180204.522}/snippets/eshell-mode/aws-ec2-get-volumes-unused (100%) rename elpa/{aws-snippets-20180111.001 => aws-snippets-20180204.522}/snippets/eshell-mode/aws-ec2-instance-running (100%) rename elpa/{aws-snippets-20180111.001 => aws-snippets-20180204.522}/snippets/eshell-mode/aws-ec2-list-instances (100%) rename elpa/{aws-snippets-20180111.001 => aws-snippets-20180204.522}/snippets/eshell-mode/aws-ec2-list-subnets (100%) rename elpa/{aws-snippets-20180111.001 => aws-snippets-20180204.522}/snippets/eshell-mode/aws-ec2-list-vpcs (100%) rename elpa/{aws-snippets-20180111.001 => aws-snippets-20180204.522}/snippets/eshell-mode/aws-ec2-start-stop-instance (100%) rename elpa/{aws-snippets-20180111.001 => aws-snippets-20180204.522}/snippets/eshell-mode/aws-ec2-volume-details (100%) rename elpa/{aws-snippets-20180111.001 => aws-snippets-20180204.522}/snippets/eshell-mode/aws-elb-describe-instance-health (100%) rename elpa/{aws-snippets-20180111.001 => aws-snippets-20180204.522}/snippets/eshell-mode/aws-elb-describe-load-balancer (100%) rename elpa/{aws-snippets-20180111.001 => aws-snippets-20180204.522}/snippets/eshell-mode/aws-elb-describe-load-balancer-attributes (100%) rename elpa/{aws-snippets-20180111.001 => aws-snippets-20180204.522}/snippets/eshell-mode/aws-elb-get-list (100%) rename elpa/{aws-snippets-20180111.001 => aws-snippets-20180204.522}/snippets/eshell-mode/aws-elb-search (100%) rename elpa/{aws-snippets-20180111.001 => aws-snippets-20180204.522}/snippets/eshell-mode/aws-emr-describe-cluster (100%) rename elpa/{aws-snippets-20180111.001 => aws-snippets-20180204.522}/snippets/eshell-mode/aws-emr-list-clusters (100%) rename elpa/{aws-snippets-20180111.001 => aws-snippets-20180204.522}/snippets/eshell-mode/aws-filters (100%) rename elpa/{aws-snippets-20180111.001 => aws-snippets-20180204.522}/snippets/eshell-mode/aws-logs-get-groups (100%) rename elpa/{aws-snippets-20180111.001 => aws-snippets-20180204.522}/snippets/eshell-mode/aws-logs-set-retention (100%) create mode 100644 elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-policy-ls rename elpa/{aws-snippets-20180111.001 => aws-snippets-20180204.522}/snippets/eshell-mode/aws-rds-describe-db-instance-details (100%) rename elpa/{aws-snippets-20180111.001 => aws-snippets-20180204.522}/snippets/eshell-mode/aws-rds-describe-db-instances (100%) rename elpa/{aws-snippets-20180111.001 => aws-snippets-20180204.522}/snippets/eshell-mode/aws-rds-describe-db-parameter-groups (100%) rename elpa/{aws-snippets-20180111.001 => aws-snippets-20180204.522}/snippets/eshell-mode/aws-rds-describe-parameters (100%) rename elpa/{aws-snippets-20180111.001 => aws-snippets-20180204.522}/snippets/eshell-mode/aws-region-loop (100%) rename elpa/{aws-snippets-20180111.001 => aws-snippets-20180204.522}/snippets/eshell-mode/aws-regions (100%) rename elpa/{aws-snippets-20180111.001 => aws-snippets-20180204.522}/snippets/eshell-mode/aws-route53-list-hosted-zones (100%) rename elpa/{aws-snippets-20180111.001 => aws-snippets-20180204.522}/snippets/eshell-mode/aws-route53-list-resource-record-sets (100%) rename elpa/{aws-snippets-20180111.001 => aws-snippets-20180204.522}/snippets/eshell-mode/aws-sns-ls (100%) rename elpa/{aws-snippets-20180111.001 => aws-snippets-20180204.522}/snippets/eshell-mode/aws-support-describe (100%) rename elpa/{aws-snippets-20180111.001 => aws-snippets-20180204.522}/snippets/eshell-mode/aws-support-ls (100%) rename elpa/{aws-snippets-20180111.001 => aws-snippets-20180204.522}/snippets/shell-mode/.yas-parents (100%) create mode 100644 elpa/aws-snippets-readme.txt diff --git a/elpa/aws-snippets-20180111.001/aws-snippets-pkg.el b/elpa/aws-snippets-20180111.001/aws-snippets-pkg.el deleted file mode 100644 index db005b73..00000000 --- a/elpa/aws-snippets-20180111.001/aws-snippets-pkg.el +++ /dev/null @@ -1,3 +0,0 @@ -(define-package "aws-snippets" "0.1.0" - "Yasnippets for AWS" - '((yasnippet "0.8.0"))) diff --git a/elpa/aws-snippets-20180111.001/aws-snippets.el b/elpa/aws-snippets-20180111.001/aws-snippets.el deleted file mode 100644 index 67e04dcb..00000000 --- a/elpa/aws-snippets-20180111.001/aws-snippets.el +++ /dev/null @@ -1,276 +0,0 @@ -;;; aws-snippets.el --- Yasnippets for AWS - -;; Copyright (C) 2018 Andreas Gerler -;; keywords: snippets -;; Version: 0.1.0 -;; Package-Requires: ((yasnippet "0.8.0")) - -;; Permission is hereby granted, free of charge, to any person obtaining -;; a copy of this software and associated documentation files (the -;; "Software"), to deal in the Software without restriction, including -;; without limitation the rights to use, copy, modify, merge, publish, -;; distribute, sublicense, and/or sell copies of the Software, and to -;; permit persons to whom the Software is furnished to do so, subject to -;; the following conditions: - -;; The above copyright notice and this permission notice shall be -;; included in all copies or substantial portions of the Software. - -;; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -;; EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -;; MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -;; NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -;; LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -;; OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -;; WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -;;; Code: - -(defvar aws-snippets-dir (file-name-directory (or (buffer-file-name) - load-file-name))) -(defconst aws-snippets--default-regions - '("us-east-1" "eu-west-1" "ap-southeast-1")) - -(defcustom aws-snippets-regions aws-snippets--default-regions - "List of AWS regions for selections." - :tag "regions" - :type '(choice (string :tag "Region") - (repeat :tag "List of Regions" - (string :tag "Region"))) - :set #'(lambda (symbol new) - (let ((old (and (boundp symbol) - (symbol-value symbol)))) - (set-default symbol new) - )) - :group 'aws-snippets - ) - -(defconst aws-snippets--default-profiles - '("test" "prod")) - -(defcustom aws-snippets-profiles aws-snippets--default-profiles - "List of AWS profiles for selections." - :tag "profiles" - :type '(choice (string :tag "Profile") - (repeat :tag "List of Profiles" - (string :tag "Profiles"))) - :set #'(lambda (symbol new) - (let ((old (and (boundp symbol) - (symbol-value symbol)))) - (set-default symbol new) - )) - :group 'aws-snippets - ) - -(defconst aws-snippets--default-filters - '("tag:Name" "tag:Project" "tag:Type" "tag:Cluster" "instance.group-id" "ip-address" "private-ip-address" "network-interface.subnet-id" "description" )) - -(defcustom aws-snippets-filters aws-snippets--default-filters - "List of AWS filters for selections." - :tag "default-filters" - :type '(choice (string :tag "Filter") - (repeat :tag "List of Filters" - (string :tag "Filter"))) - :set #'(lambda (symbol new) - (let ((old (and (boundp symbol) - (symbol-value symbol)))) - (set-default symbol new) - )) - :group 'aws-snippets - ) - -(defconst aws-snippets--ami-ls-query - '"reverse(sort_by(Images, &CreationDate)[].{CreationDate:CreationDate,Name:Name,ImageId:ImageId,Public:Public,Description:Description})") - -(defcustom aws-snippets-ami-ls-query aws-snippets--ami-ls-query - "Query string used for ami-ls." - :tag "ami-ls-query" - :group 'aws-snippets - :type 'string - ) - -(defconst aws-snippets--autoscaling-describe-auto-scaling-groups-query - '"AutoScalingGroups[].{Name: AutoScalingGroupName, Desired: DesiredCapacity,Min: MinSize, Max: MaxSize}") - -(defcustom aws-snippets-autoscaling-describe-auto-scaling-groups-query aws-snippets--autoscaling-describe-auto-scaling-groups-query - "Query string used for autoscaling-describe-auto-scaling-groups." - :tag "autoscaling-describe-auto-scaling-groups" - :group 'aws-snippets - :type 'string - ) - -(defconst aws-snippets--autoscaling-describe-launch-configurations-query - '"reverse(sort_by(LaunchConfigurations &CreatedTime)[*].[LaunchConfigurationName, CreatedTime])") - -(defcustom aws-snippets-autoscaling-describe-launch-configurations-query aws-snippets--autoscaling-describe-launch-configurations-query - "Query string used for autoscaling-describe-launch-configurations." - :tag "autoscaling-describe-launch-configurations-query" - :group 'aws-snippets - :type 'string - ) - -(defconst aws-snippets--ec2-get-dns-names-query - '"Reservations[].Instances[?State.Name=='running'].[InstanceId, PublicDnsName]") - -(defcustom aws-snippets-ec2-get-dns-names-query aws-snippets--ec2-get-dns-names-query - "Query string used for aws-ec2-get-dns-names." - :tag "ec2-get-dns-names-query" - :group 'aws-snippets - :type 'string - ) - -(defconst aws-snippets--ec2-get-instance-volumes-query - '"Reservations[].Instances[].[join(\`,\`,Tags[?Key==\`Name\`].Value),join(' ', BlockDeviceMappings[].Ebs.VolumeId)]") - -(defcustom aws-snippets-ec2-get-instance-volumes-query aws-snippets--ec2-get-instance-volumes-query - "Query string used for ec2-get-instance-volumes." - :tag "ec2-get-instance-volumes-query" - :group 'aws-snippets - :type 'string - ) - -(defconst aws-snippets--ec2-get-securitygroups-query - '"sort_by(SecurityGroups, &GroupName)[*].[GroupName, GroupId, Description]") - -(defcustom aws-snippets-ec2-get-securitygroups-query aws-snippets--ec2-get-securitygroups - "Query string used for ec2-get-securitygroups." - :tag "ec2-get-securitygroups-query" - :group 'aws-snippets - :type 'string - ) - -(defconst aws-snippets--ec2-get-snapshots-query - '"Snapshots[].[join(\`,\`,Tags[?Key==\`Name\`].Value),StartTime,Description,SnapshotId,VolumeId,VolumeSize,Progress]") - -(defcustom aws-snippets-ec2-get-snapshots-query aws-snippets--ec2-get-snapshots-query - "Query string used for ec2-get-snapshots-query." - :tag "ec2-get-snapshots-query" - :group 'aws-snippets - :type 'string - ) - -(defconst aws-snippets--ec2-get-volumes-query - '"Volumes[].[VolumeId,State,SnapshotId,join(\`,\`,Tags[?Key==\`Name\`].Value)]") - -(defcustom aws-snippets-ec2-get-volumes-query aws-snippets--ec2-get-volumes-query - "Query string used for ec2-get-volumes-query." - :tag "ec2-get-volumes-query" - :group 'aws-snippets - :type 'string - ) - -(defconst aws-snippets--ec2-get-volumes-unused-query - '"Volumes[].[VolumeId,Size,VolumeType,CreateTime,State,SnapshotId]") - -(defcustom aws-snippets-ec2-get-volumes-unused-query aws-snippets--ec2-get-volumes-unused-query - "Query string used for ec2-get-volumes-unused-query." - :tag "ec2-get-volumes-unused-query" - :group 'aws-snippets - :type 'string - ) - -(defconst aws-snippets--ec2-instance-running-query - '"Reservations[].Instances[].[InstanceId, State.Name]") - -(defcustom aws-snippets-ec2-instance-running-query aws-snippets--ec2-instance-running-query - "Query string used for ec2-instance-running." - :tag "ec2-instance-running-query" - :group 'aws-snippets - :type 'string - ) - -(defconst aws-snippets--ec2-list-instances-query - '"Reservations[].Instances[].[join(\`,\`,Tags[?Key==\`Name\`].Value),join(\`,\`,Tags[?Key==\`Schedule\`].Value),InstanceId, State.Name, PublicDnsName, InstanceType,Placement.AvailabilityZone,LaunchTime]") - -(defcustom aws-snippets-ec2-list-instances-query aws-snippets--ec2-list-instances-query - "Query string used for ec2 describe-instances." - :tag "ec2-list-instances-query" - :group 'aws-snippets - :type 'string - ) - -(defconst aws-snippets--ec2-list-subnets-query - '"sort_by(sort_by(Subnets[].{VpcId:VpcId, SubnetId:SubnetId, State:State, AvailabilityZone:AvailabilityZone, CidrBlock:CidrBlock, AvailableIpAddressCount:AvailableIpAddressCount Tags:to_string(Tags[].[Key, Value])}, &SubnetId), &VpcId)") - -(defcustom aws-snippets-ec2-list-subnets-query aws-snippets--ec2-list-subnets-query - "Query string used for ec2-list-subnets." - :tag "ec2-list-subnets-query" - :group 'aws-snippets - :type 'string - ) - -(defconst aws-snippets--ec2-list-vpcs-query - '"sort_by(Vpcs[].{VpcId:VpcId, State:State, AvailabilityZone:AvailabilityZone, CidrBlock:CidrBlock, AvailableIpAddressCount:AvailableIpAddressCount Tags:to_string(Tags[].[Key, Value])}, &VpcId)") - -(defcustom aws-snippets-ec2-list-vpcs-query aws-snippets--ec2-list-vpcs-query - "Query string used for ec2-list-vpcs." - :tag "ec2-list-vpcs-query" - :group 'aws-snippets - :type 'string - ) - -(defconst aws-snippets--elb-get-list-query - '"reverse(sort_by(LoadBalancerDescriptions, &CreatedTime)[].[LoadBalancerName, CreatedTime])") - -(defcustom aws-snippets-elb-get-list-query aws-snippets--elb-get-list-query - "Query string used for elb-get-list." - :tag "elb-get-list-query" - :group 'aws-snippets - :type 'string - ) - -(defconst aws-snippets--emr-list-clusters-query - '"Clusters[*].{ID: Id, NAME: Name}") - -(defcustom aws-snippets-emr-list-clusters-query aws-snippets--emr-list-clusters-query - "Query string used for emr-list-clusters." - :tag "emr-list-clusters-query" - :group 'aws-snippets - :type 'string - ) - -(defconst aws-snippets--rds-describe-instances-query - '"DBInstances[*].[DBInstanceIdentifier,DbiResourceId, Endpoint.Address]") - -(defcustom aws-snippets-rds-describe-instances-query aws-snippets--rds-describe-instances-query - "Query string used for rds describe-db-instances." - :tag "rds-describe-db-instances-query" - :group 'aws-snippets - :type 'string - ) - -(defconst aws-snippets--route53-list-hosted-zones-query - '"HostedZones[].[Id, Name]") - -(defcustom aws-snippets-route53-list-hosted-zones-query aws-snippets--route53-list-hosted-zones-query - "Query string used for route53 list-hosted-zones." - :tag "route53-list-hosted-zones-query" - :group 'aws-snippets - :type 'string - ) - -(defconst aws-snippets--aws-support-ls-query - '"reverse(sort_by(cases, &timeCreated)[].[caseId, subject, timeCreated, displayId])") - -(defcustom aws-snippets-aws-support-ls-query aws-snippets--aws-support-ls-query - "Query string used for aws support-ls-query." - :tag "aws-support-ls-query" - :group 'aws-snippets - :type 'string - ) - -;;;###autoload -(defun aws-snippets-initialize () - "Initialize package." - (let ((snip-dir (expand-file-name "snippets" aws-snippets-dir))) - (when (boundp 'yas-snippet-dirs)(add-to-list 'yas-snippet-dirs snip-dir t)) - (yas-load-directory snip-dir))) - -;;;###autoload -(eval-after-load 'yasnippet - '(aws-snippets-initialize)) - -(require 'yasnippet) - -(provide 'aws-snippets) -;;; aws-snippets.el ends here diff --git a/elpa/aws-snippets-20180111.001/aws-snippets-autoloads.el b/elpa/aws-snippets-20180204.522/aws-snippets-autoloads.el similarity index 72% rename from elpa/aws-snippets-20180111.001/aws-snippets-autoloads.el rename to elpa/aws-snippets-20180204.522/aws-snippets-autoloads.el index 26b0e807..7f4bf86f 100644 --- a/elpa/aws-snippets-20180111.001/aws-snippets-autoloads.el +++ b/elpa/aws-snippets-20180204.522/aws-snippets-autoloads.el @@ -3,12 +3,12 @@ ;;; Code: (add-to-list 'load-path (directory-file-name (or (file-name-directory #$) (car load-path)))) -;;;### (autoloads nil "aws-snippets" "aws-snippets.el" (23126 10835 -;;;;;; 780604 640000)) +;;;### (autoloads nil "aws-snippets" "aws-snippets.el" (23162 61523 +;;;;;; 523006 699000)) ;;; Generated autoloads from aws-snippets.el (autoload 'aws-snippets-initialize "aws-snippets" "\ - +Initialize package. \(fn)" nil nil) @@ -16,8 +16,8 @@ ;;;*** -;;;### (autoloads nil nil ("aws-snippets-pkg.el") (23126 10835 781783 -;;;;;; 534000)) +;;;### (autoloads nil nil ("aws-snippets-pkg.el") (23162 61523 430867 +;;;;;; 76000)) ;;;*** diff --git a/elpa/aws-snippets-20180204.522/aws-snippets-pkg.el b/elpa/aws-snippets-20180204.522/aws-snippets-pkg.el new file mode 100644 index 00000000..2a25fbe4 --- /dev/null +++ b/elpa/aws-snippets-20180204.522/aws-snippets-pkg.el @@ -0,0 +1,7 @@ +(define-package "aws-snippets" "20180204.522" "Yasnippets for AWS" + '((yasnippet "0.8.0")) + :keywords + '("snippets")) +;; Local Variables: +;; no-byte-compile: t +;; End: diff --git a/elpa/aws-snippets-20180204.522/aws-snippets.el b/elpa/aws-snippets-20180204.522/aws-snippets.el new file mode 100644 index 00000000..fc00bd13 --- /dev/null +++ b/elpa/aws-snippets-20180204.522/aws-snippets.el @@ -0,0 +1,197 @@ +;;; aws-snippets.el --- Yasnippets for AWS + +;; Copyright (C) 2018 Andreas Gerler +;; keywords: snippets +;; Version: 0.1.0 +;; Package-Requires: ((yasnippet "0.8.0")) + +;; Permission is hereby granted, free of charge, to any person obtaining +;; a copy of this software and associated documentation files (the +;; "Software"), to deal in the Software without restriction, including +;; without limitation the rights to use, copy, modify, merge, publish, +;; distribute, sublicense, and/or sell copies of the Software, and to +;; permit persons to whom the Software is furnished to do so, subject to +;; the following conditions: + +;; The above copyright notice and this permission notice shall be +;; included in all copies or substantial portions of the Software. + +;; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +;; EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +;; MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +;; NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +;; LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +;; OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +;; WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +;;; Commentary: + +;; A collection of yasnippet snippets to be used with AWS CLI + +;;; Code: + +(defvar aws-snippets-dir (file-name-directory (or load-file-name + (buffer-file-name)))) + +(defcustom aws-snippets-regions '("us-east-1" "eu-west-1" "ap-southeast-1") + "List of AWS regions for selections." + :tag "regions" + :type '(choice (string :tag "Region") + (repeat :tag "List of Regions" + (string :tag "Region"))) + :set #'(lambda (symbol new) + (let ((old (and (boundp symbol) + (symbol-value symbol)))) + (set-default symbol new) + )) + :group 'aws-snippets) + +(defcustom aws-snippets-profiles '("test" "prod") + "List of AWS profiles for selections." + :tag "profiles" + :type '(choice (string :tag "Profile") + (repeat :tag "List of Profiles" + (string :tag "Profiles"))) + :set #'(lambda (symbol new) + (let ((old (and (boundp symbol) + (symbol-value symbol)))) + (set-default symbol new) + )) + :group 'aws-snippets) + +(defcustom aws-snippets-filters '("tag:Name" "tag:Project" "tag:Type" "tag:Cluster" "instance.group-id" "ip-address" "private-ip-address" "network-interface.subnet-id" "description" "name" "iam-instance-profile.arn") + "List of AWS filters for selections." + :tag "default-filters" + :type '(choice (string :tag "Filter") + (repeat :tag "List of Filters" + (string :tag "Filter"))) + :set #'(lambda (symbol new) + (let ((old (and (boundp symbol) + (symbol-value symbol)))) + (set-default symbol new) + )) + :group 'aws-snippets) + +(defcustom aws-snippets-ami-ls-query '"reverse(sort_by(Images, &CreationDate)[].{CreationDate:CreationDate,Name:Name,ImageId:ImageId,Public:Public,Description:Description})" + "Query string used for ami-ls." + :tag "ami-ls-query" + :group 'aws-snippets + :type 'string) + +(defcustom aws-snippets-autoscaling-describe-auto-scaling-groups-query '"AutoScalingGroups[].{Name: AutoScalingGroupName, Desired: DesiredCapacity,Min: MinSize, Max: MaxSize}" + "Query string used for autoscaling-describe-auto-scaling-groups." + :tag "autoscaling-describe-auto-scaling-groups" + :group 'aws-snippets + :type 'string) + +(defcustom aws-snippets-autoscaling-describe-launch-configurations-query '"reverse(sort_by(LaunchConfigurations &CreatedTime)[*].[LaunchConfigurationName, CreatedTime])" + "Query string used for autoscaling-describe-launch-configurations." + :tag "autoscaling-describe-launch-configurations-query" + :group 'aws-snippets + :type 'string) + +(defcustom aws-snippets-ec2-get-dns-names-query '"Reservations[].Instances[?State.Name=='running'].[InstanceId, PublicDnsName]" + "Query string used for aws-ec2-get-dns-names." + :tag "ec2-get-dns-names-query" + :group 'aws-snippets + :type 'string) + +(defcustom aws-snippets-ec2-get-instance-volumes-query '"Reservations[].Instances[].[join(\`,\`,Tags[?Key==\`Name\`].Value),join(' ', BlockDeviceMappings[].Ebs.VolumeId)]" + "Query string used for ec2-get-instance-volumes." + :tag "ec2-get-instance-volumes-query" + :group 'aws-snippets + :type 'string) + +(defcustom aws-snippets-ec2-get-securitygroups-query '"sort_by(SecurityGroups, &GroupName)[*].[GroupName, GroupId, Description]" + "Query string used for ec2-get-securitygroups." + :tag "ec2-get-securitygroups-query" + :group 'aws-snippets + :type 'string) + +(defcustom aws-snippets-ec2-get-snapshots-query '"Snapshots[].[join(\`,\`,Tags[?Key==\`Name\`].Value),StartTime,Description,SnapshotId,VolumeId,VolumeSize,Progress]" + "Query string used for ec2-get-snapshots-query." + :tag "ec2-get-snapshots-query" + :group 'aws-snippets + :type 'string) + +(defcustom aws-snippets-ec2-get-volumes-query '"Volumes[].[VolumeId,State,SnapshotId,join(\`,\`,Tags[?Key==\`Name\`].Value)]" + "Query string used for ec2-get-volumes-query." + :tag "ec2-get-volumes-query" + :group 'aws-snippets + :type 'string) + +(defcustom aws-snippets-ec2-get-volumes-unused-query '"Volumes[].[VolumeId,Size,VolumeType,CreateTime,State,SnapshotId]" + "Query string used for ec2-get-volumes-unused-query." + :tag "ec2-get-volumes-unused-query" + :group 'aws-snippets + :type 'string) + +(defcustom aws-snippets-ec2-instance-running-query '"Reservations[].Instances[].[InstanceId, State.Name]" + "Query string used for ec2-instance-running." + :tag "ec2-instance-running-query" + :group 'aws-snippets + :type 'string) + +(defcustom aws-snippets-ec2-list-instances-query '"Reservations[].Instances[].[Tags[?Key==\`Name\`].Value[] | [0],Tags[?Key==\`Schedule\`].Value[] | [0],InstanceId, State.Name, PublicDnsName, InstanceType,Placement.AvailabilityZone,LaunchTime]" + "Query string used for ec2 describe-instances." + :tag "ec2-list-instances-query" + :group 'aws-snippets + :type 'string) + +(defcustom aws-snippets-ec2-list-subnets-query '"sort_by(sort_by(Subnets[].{VpcId:VpcId, SubnetId:SubnetId, State:State, AvailabilityZone:AvailabilityZone, CidrBlock:CidrBlock, AvailableIpAddressCount:AvailableIpAddressCount Tags:to_string(Tags[].[Key, Value])}, &SubnetId), &VpcId)" + "Query string used for ec2-list-subnets." + :tag "ec2-list-subnets-query" + :group 'aws-snippets + :type 'string) + +(defcustom aws-snippets-ec2-list-vpcs-query '"sort_by(Vpcs[].{VpcId:VpcId, State:State, AvailabilityZone:AvailabilityZone, CidrBlock:CidrBlock, AvailableIpAddressCount:AvailableIpAddressCount Tags:to_string(Tags[].[Key, Value])}, &VpcId)" + "Query string used for ec2-list-vpcs." + :tag "ec2-list-vpcs-query" + :group 'aws-snippets + :type 'string) + +(defcustom aws-snippets-elb-get-list-query '"reverse(sort_by(LoadBalancerDescriptions, &CreatedTime)[].[LoadBalancerName, CreatedTime])" + "Query string used for elb-get-list." + :tag "elb-get-list-query" + :group 'aws-snippets + :type 'string) + +(defcustom aws-snippets-emr-list-clusters-query '"Clusters[*].{ID: Id, NAME: Name}" + "Query string used for emr-list-clusters." + :tag "emr-list-clusters-query" + :group 'aws-snippets + :type 'string) + +(defcustom aws-snippets-rds-describe-instances-query '"DBInstances[*].[DBInstanceIdentifier,DbiResourceId, Endpoint.Address]" + "Query string used for rds describe-db-instances." + :tag "rds-describe-db-instances-query" + :group 'aws-snippets + :type 'string) + +(defcustom aws-snippets-route53-list-hosted-zones-query '"HostedZones[].[Id, Name]" + "Query string used for route53 list-hosted-zones." + :tag "route53-list-hosted-zones-query" + :group 'aws-snippets + :type 'string) + +(defcustom aws-snippets-aws-support-ls-query '"reverse(sort_by(cases, &timeCreated)[].[caseId, subject, timeCreated, displayId])" + "Query string used for aws support-ls-query." + :tag "aws-support-ls-query" + :group 'aws-snippets + :type 'string) + +;;;###autoload +(defun aws-snippets-initialize () + "Initialize package." + (let ((snip-dir (expand-file-name "snippets" aws-snippets-dir))) + (when (boundp 'yas-snippet-dirs)(add-to-list 'yas-snippet-dirs snip-dir t)) + (yas-load-directory snip-dir))) + +;;;###autoload +(eval-after-load 'yasnippet + '(aws-snippets-initialize)) + +(require 'yasnippet) + +(provide 'aws-snippets) +;;; aws-snippets.el ends here diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ami-ls b/elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-ami-ls similarity index 100% rename from elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ami-ls rename to elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-ami-ls diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-autoscaling-describe-auto-scaling-groups b/elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-autoscaling-describe-auto-scaling-groups similarity index 100% rename from elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-autoscaling-describe-auto-scaling-groups rename to elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-autoscaling-describe-auto-scaling-groups diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-autoscaling-describe-launch-configurations b/elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-autoscaling-describe-launch-configurations similarity index 100% rename from elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-autoscaling-describe-launch-configurations rename to elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-autoscaling-describe-launch-configurations diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-autoscaling-update-auto-scaling-group-min-max b/elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-autoscaling-update-auto-scaling-group-min-max similarity index 100% rename from elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-autoscaling-update-auto-scaling-group-min-max rename to elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-autoscaling-update-auto-scaling-group-min-max diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-cloudformation-change-ls b/elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-cloudformation-change-ls similarity index 100% rename from elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-cloudformation-change-ls rename to elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-cloudformation-change-ls diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-cloudformation-create-change-set b/elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-cloudformation-create-change-set similarity index 100% rename from elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-cloudformation-create-change-set rename to elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-cloudformation-create-change-set diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-cloudformation-describe-change-set b/elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-cloudformation-describe-change-set similarity index 100% rename from elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-cloudformation-describe-change-set rename to elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-cloudformation-describe-change-set diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-cloudformation-describe-stack b/elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-cloudformation-describe-stack similarity index 100% rename from elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-cloudformation-describe-stack rename to elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-cloudformation-describe-stack diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-cloudformation-describe-stack-events b/elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-cloudformation-describe-stack-events similarity index 100% rename from elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-cloudformation-describe-stack-events rename to elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-cloudformation-describe-stack-events diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-cloudformation-ls b/elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-cloudformation-ls similarity index 68% rename from elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-cloudformation-ls rename to elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-cloudformation-ls index d4c180fe..599058b8 100644 --- a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-cloudformation-ls +++ b/elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-cloudformation-ls @@ -21,4 +21,5 @@ aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$ "UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS" "UPDATE_ROLLBACK_COMPLETE" "REVIEW_IN_PROGRESS" +"CREATE_IN_PROGRESS CREATE_FAILED CREATE_COMPLETE ROLLBACK_IN_PROGRESS ROLLBACK_FAILED ROLLBACK_COMPLETE DELETE_IN_PROGRESS DELETE_FAILED UPDATE_IN_PROGRESS UPDATE_COMPLETE_CLEANUP_IN_PROGRESS UPDATE_COMPLETE UPDATE_ROLLBACK_IN_PROGRESS UPDATE_ROLLBACK_FAILED UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS UPDATE_ROLLBACK_COMPLETE REVIEW_IN_PROGRESS" ))} --output ${5:$$(yas-choose-value '("text" "table" "json"))} $0 \ No newline at end of file diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-cloudformation-validate-template b/elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-cloudformation-validate-template similarity index 100% rename from elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-cloudformation-validate-template rename to elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-cloudformation-validate-template diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-cloudtrail-lookup-events b/elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-cloudtrail-lookup-events similarity index 100% rename from elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-cloudtrail-lookup-events rename to elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-cloudtrail-lookup-events diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-delete-snapshot b/elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-ec2-delete-snapshot similarity index 100% rename from elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-delete-snapshot rename to elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-ec2-delete-snapshot diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-delete-volume b/elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-ec2-delete-volume similarity index 100% rename from elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-delete-volume rename to elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-ec2-delete-volume diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-describe-instance-attribute b/elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-ec2-describe-instance-attribute similarity index 100% rename from elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-describe-instance-attribute rename to elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-ec2-describe-instance-attribute diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-describe-instance-status b/elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-ec2-describe-instance-status similarity index 100% rename from elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-describe-instance-status rename to elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-ec2-describe-instance-status diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-describe-userdata b/elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-ec2-describe-userdata similarity index 100% rename from elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-describe-userdata rename to elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-ec2-describe-userdata diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-console-output b/elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-ec2-get-console-output similarity index 100% rename from elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-console-output rename to elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-ec2-get-console-output diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-dns-names b/elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-ec2-get-dns-names similarity index 100% rename from elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-dns-names rename to elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-ec2-get-dns-names diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-instance-details b/elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-ec2-get-instance-details similarity index 100% rename from elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-instance-details rename to elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-ec2-get-instance-details diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-instance-volumes b/elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-ec2-get-instance-volumes similarity index 100% rename from elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-instance-volumes rename to elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-ec2-get-instance-volumes diff --git a/elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-ec2-get-instances b/elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-ec2-get-instances new file mode 100644 index 00000000..1314c89f --- /dev/null +++ b/elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-ec2-get-instances @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: aws-ec2-get-instances +# key: ec2-ls +# -- +aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value "\$\{REGION\}" aws-snippets-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/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-securitygroup-details b/elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-ec2-get-securitygroup-details similarity index 100% rename from elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-securitygroup-details rename to elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-ec2-get-securitygroup-details diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-securitygroup-references b/elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-ec2-get-securitygroup-references similarity index 100% rename from elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-securitygroup-references rename to elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-ec2-get-securitygroup-references diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-securitygroups b/elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-ec2-get-securitygroups similarity index 100% rename from elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-securitygroups rename to elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-ec2-get-securitygroups diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-snapshot-details b/elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-ec2-get-snapshot-details similarity index 100% rename from elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-snapshot-details rename to elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-ec2-get-snapshot-details diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-snapshots b/elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-ec2-get-snapshots similarity index 100% rename from elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-snapshots rename to elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-ec2-get-snapshots diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-volumes b/elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-ec2-get-volumes similarity index 100% rename from elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-volumes rename to elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-ec2-get-volumes diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-volumes-unused b/elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-ec2-get-volumes-unused similarity index 100% rename from elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-volumes-unused rename to elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-ec2-get-volumes-unused diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-instance-running b/elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-ec2-instance-running similarity index 100% rename from elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-instance-running rename to elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-ec2-instance-running diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-list-instances b/elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-ec2-list-instances similarity index 100% rename from elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-list-instances rename to elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-ec2-list-instances diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-list-subnets b/elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-ec2-list-subnets similarity index 100% rename from elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-list-subnets rename to elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-ec2-list-subnets diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-list-vpcs b/elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-ec2-list-vpcs similarity index 100% rename from elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-list-vpcs rename to elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-ec2-list-vpcs diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-start-stop-instance b/elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-ec2-start-stop-instance similarity index 100% rename from elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-start-stop-instance rename to elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-ec2-start-stop-instance diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-volume-details b/elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-ec2-volume-details similarity index 100% rename from elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-volume-details rename to elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-ec2-volume-details diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-elb-describe-instance-health b/elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-elb-describe-instance-health similarity index 100% rename from elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-elb-describe-instance-health rename to elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-elb-describe-instance-health diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-elb-describe-load-balancer b/elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-elb-describe-load-balancer similarity index 100% rename from elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-elb-describe-load-balancer rename to elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-elb-describe-load-balancer diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-elb-describe-load-balancer-attributes b/elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-elb-describe-load-balancer-attributes similarity index 100% rename from elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-elb-describe-load-balancer-attributes rename to elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-elb-describe-load-balancer-attributes diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-elb-get-list b/elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-elb-get-list similarity index 100% rename from elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-elb-get-list rename to elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-elb-get-list diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-elb-search b/elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-elb-search similarity index 100% rename from elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-elb-search rename to elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-elb-search diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-emr-describe-cluster b/elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-emr-describe-cluster similarity index 100% rename from elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-emr-describe-cluster rename to elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-emr-describe-cluster diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-emr-list-clusters b/elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-emr-list-clusters similarity index 100% rename from elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-emr-list-clusters rename to elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-emr-list-clusters diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-filters b/elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-filters similarity index 100% rename from elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-filters rename to elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-filters diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-logs-get-groups b/elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-logs-get-groups similarity index 100% rename from elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-logs-get-groups rename to elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-logs-get-groups diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-logs-set-retention b/elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-logs-set-retention similarity index 100% rename from elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-logs-set-retention rename to elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-logs-set-retention diff --git a/elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-policy-ls b/elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-policy-ls new file mode 100644 index 00000000..e4e1c99c --- /dev/null +++ b/elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-policy-ls @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: aws-policy-ls +# key: policy-ls +# group: aws +# -- +aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value aws-snippets-regions)}} iam list-policies --scope ${5:$$(yas-choose-value '("All" "AWS" "Local"))} --output ${5:$$(yas-choose-value '("text" "table" "json"))} $0 \ No newline at end of file diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-rds-describe-db-instance-details b/elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-rds-describe-db-instance-details similarity index 100% rename from elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-rds-describe-db-instance-details rename to elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-rds-describe-db-instance-details diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-rds-describe-db-instances b/elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-rds-describe-db-instances similarity index 100% rename from elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-rds-describe-db-instances rename to elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-rds-describe-db-instances diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-rds-describe-db-parameter-groups b/elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-rds-describe-db-parameter-groups similarity index 100% rename from elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-rds-describe-db-parameter-groups rename to elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-rds-describe-db-parameter-groups diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-rds-describe-parameters b/elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-rds-describe-parameters similarity index 100% rename from elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-rds-describe-parameters rename to elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-rds-describe-parameters diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-region-loop b/elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-region-loop similarity index 100% rename from elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-region-loop rename to elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-region-loop diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-regions b/elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-regions similarity index 100% rename from elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-regions rename to elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-regions diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-route53-list-hosted-zones b/elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-route53-list-hosted-zones similarity index 100% rename from elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-route53-list-hosted-zones rename to elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-route53-list-hosted-zones diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-route53-list-resource-record-sets b/elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-route53-list-resource-record-sets similarity index 100% rename from elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-route53-list-resource-record-sets rename to elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-route53-list-resource-record-sets diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-sns-ls b/elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-sns-ls similarity index 100% rename from elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-sns-ls rename to elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-sns-ls diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-support-describe b/elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-support-describe similarity index 100% rename from elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-support-describe rename to elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-support-describe diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-support-ls b/elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-support-ls similarity index 100% rename from elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-support-ls rename to elpa/aws-snippets-20180204.522/snippets/eshell-mode/aws-support-ls diff --git a/elpa/aws-snippets-20180111.001/snippets/shell-mode/.yas-parents b/elpa/aws-snippets-20180204.522/snippets/shell-mode/.yas-parents similarity index 100% rename from elpa/aws-snippets-20180111.001/snippets/shell-mode/.yas-parents rename to elpa/aws-snippets-20180204.522/snippets/shell-mode/.yas-parents diff --git a/elpa/aws-snippets-readme.txt b/elpa/aws-snippets-readme.txt new file mode 100644 index 00000000..82ef4387 --- /dev/null +++ b/elpa/aws-snippets-readme.txt @@ -0,0 +1 @@ +A collection of yasnippet snippets to be used with AWS CLI -- 2.47.3