From: Andreas Gerler Date: Thu, 18 Jan 2018 22:43:22 +0000 (+0100) Subject: Adding custom varibles to aws-snippets. X-Git-Url: http://git.bundesbrandschatzamt.de/?a=commitdiff_plain;h=0b5f8a99479688dabafb212006670588b4b0a52d;p=emacsconfig.git Adding custom varibles to aws-snippets. Signed-off-by: Andreas Gerler --- diff --git a/elpa/aws-snippets-20180111.001/aws-snippets.el b/elpa/aws-snippets-20180111.001/aws-snippets.el index 22e768e7..67e04dcb 100644 --- a/elpa/aws-snippets-20180111.001/aws-snippets.el +++ b/elpa/aws-snippets-20180111.001/aws-snippets.el @@ -33,6 +33,7 @@ (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"))) @@ -44,12 +45,12 @@ :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"))) @@ -66,6 +67,7 @@ (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"))) @@ -77,16 +79,186 @@ :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." diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/ami-ls b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/ami-ls deleted file mode 100644 index 4e7314f4..00000000 --- a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/ami-ls +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: ami-ls -# key: ami-ls -# group: aws -# -- -aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value aws-snippets-regions)}} ec2 describe-images --owners \$`(if (string-equal major-mode "eshell-mode")(message "{")(message "("))` aws --profile=$1 ec2 describe-security-groups --group-names 'Default' --query 'SecurityGroups[0].OwnerId' --output text `(if (string-equal major-mode "eshell-mode")(message "}")(message ")"))` --query "reverse(sort_by(Images, &CreationDate)[].{CreationDate:CreationDate,Name:Name,ImageId:ImageId,Public:Public,Description:Description})" --output ${4:$$(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-ami-ls b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ami-ls new file mode 100644 index 00000000..0d456a15 --- /dev/null +++ b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ami-ls @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: aws-ami-ls +# key: ami-ls +# group: aws +# -- +aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value aws-snippets-regions)}} ec2 describe-images --owners \$`(if (string-equal major-mode "eshell-mode")(message "{")(message "("))` aws --profile=$1 ec2 describe-security-groups --group-names 'Default' --query 'SecurityGroups[0].OwnerId' --output text `(if (string-equal major-mode "eshell-mode")(message "}")(message ")"))` --query "`(print aws-snippets-ami-ls-query)`" --output ${4:$$(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-autoscaling-describe-auto-scaling-groups b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-autoscaling-describe-auto-scaling-groups index 50f26181..cfe0bf8d 100644 --- a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-autoscaling-describe-auto-scaling-groups +++ b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-autoscaling-describe-auto-scaling-groups @@ -3,4 +3,4 @@ # key: asg-ls # group: aws # -- -aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value "\$\{REGION\}" aws-snippets-regions)}} autoscaling describe-auto-scaling-groups --query 'AutoScalingGroups[].{Name: AutoScalingGroupName, Desired: DesiredCapacity,Min: MinSize, Max: MaxSize}' --output ${4:$$(yas-choose-value '("text" "table" "json"))} $0 \ No newline at end of file +aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value "\$\{REGION\}" aws-snippets-regions)}} autoscaling describe-auto-scaling-groups --query '`(print aws-snippets-autoscaling-describe-auto-scaling-groups-query)`' --output ${4:$$(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-autoscaling-describe-launch-configurations b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-autoscaling-describe-launch-configurations index 80efeb98..b7082fc3 100644 --- a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-autoscaling-describe-launch-configurations +++ b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-autoscaling-describe-launch-configurations @@ -3,4 +3,4 @@ # key: asl-ls # group: aws # -- -aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value "\$\{REGION\}" aws-snippets-regions)}} autoscaling describe-launch-configurations --query 'reverse(sort_by(LaunchConfigurations &CreatedTime)[*].[LaunchConfigurationName, CreatedTime])' --output ${4:$$(yas-choose-value '("text" "table" "json"))} $0 \ No newline at end of file +aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value "\$\{REGION\}" aws-snippets-regions)}} autoscaling describe-launch-configurations --query '`(print aws-snippets-autoscaling-describe-launch-configurations-query)`' --output ${4:$$(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-autoscaling-update-auto-scaling-group-min-max b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-autoscaling-update-auto-scaling-group-min-max index 57037922..03709394 100644 --- a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-autoscaling-update-auto-scaling-group-min-max +++ b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-autoscaling-update-auto-scaling-group-min-max @@ -3,4 +3,4 @@ # key: aws-autoscaling-update-auto-scaling-group-min-max # group: aws # -- -aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value "\$\{REGION\}" aws-snippets-regions)}} autoscaling update-auto-scaling-group --auto-scaling-group-name ${4:`(yank)`} --min-size $5 --max-size $6 $0 \ No newline at end of file +aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value "\$\{REGION\}" aws-snippets-regions)}} autoscaling update-auto-scaling-group --auto-scaling-group-name ${4:`(current-kill 0)`} --min-size $5 --max-size $6 $0 \ No newline at end of file diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-cloudformation-change-ls b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-cloudformation-change-ls index 442fedcc..825d942d 100644 --- a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-cloudformation-change-ls +++ b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-cloudformation-change-ls @@ -3,4 +3,4 @@ # key: cloud-change-ls # group: aws # -- -aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value aws-snippets-regions)}} cloudformation list-change-sets --stack-name ${4:`(yank)`} --output ${5:$$(yas-choose-value '("text" "table" "json"))} $0 \ No newline at end of file +aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value aws-snippets-regions)}} cloudformation list-change-sets --stack-name ${4:`(current-kill 0)`} --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-describe-change-set b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-cloudformation-describe-change-set index 2b6b8230..958515b1 100644 --- a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-cloudformation-describe-change-set +++ b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-cloudformation-describe-change-set @@ -3,4 +3,4 @@ # key: cloud-descchange # group: aws # -- -aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value aws-snippets-regions)}} cloudformation describe-change-set --stack-name ${4:`(yank)`} --change-set-name $5 --output ${6:$$(yas-choose-value '("text" "table" "json"))} $0 \ No newline at end of file +aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value aws-snippets-regions)}} cloudformation describe-change-set --stack-name ${4:`(current-kill 0)`} --change-set-name $5 --output ${6:$$(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-describe-stack b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-cloudformation-describe-stack index bf9a1241..143d7ed1 100644 --- a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-cloudformation-describe-stack +++ b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-cloudformation-describe-stack @@ -3,4 +3,4 @@ # key: cloud-desc # group: aws # -- -aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value aws-snippets-regions)}} cloudformation describe-stacks --stack-name ${4:`(yank)`} --output ${5:$$(yas-choose-value '("text" "table" "json"))} $0 \ No newline at end of file +aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value aws-snippets-regions)}} cloudformation describe-stacks --stack-name ${4:`(current-kill 0)`} --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-describe-stack-events b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-cloudformation-describe-stack-events index b81cbc52..062be5e7 100644 --- a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-cloudformation-describe-stack-events +++ b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-cloudformation-describe-stack-events @@ -3,4 +3,4 @@ # key: cloud-events-ls # group: aws # -- -aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value aws-snippets-regions)}} cloudformation describe-stack-events --stack-name ${4:`(yank)`} --output ${5:$$(yas-choose-value '("text" "table" "json"))} $0 \ No newline at end of file +aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value aws-snippets-regions)}} cloudformation describe-stack-events --stack-name ${4:`(current-kill 0)`} --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-20180111.001/snippets/eshell-mode/aws-cloudformation-validate-template index 344fc65a..e288e3ef 100644 --- a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-cloudformation-validate-template +++ b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-cloudformation-validate-template @@ -3,4 +3,4 @@ # key: cloud-val-temp # group: aws # -- -aws --profile=test --region=us-east-1 cloudformation validate-template --template-body file://${1:`(yank)`} --output ${2:$$(yas-choose-value '("text" "table" "json"))} $0 \ No newline at end of file +aws --profile=test --region=us-east-1 cloudformation validate-template --template-body file://${1:`(current-kill 0)`} --output ${2:$$(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-ec2-delete-snapshot b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-delete-snapshot index de02c959..be6faa84 100644 --- a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-delete-snapshot +++ b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-delete-snapshot @@ -3,4 +3,4 @@ # key: snap-del # group: aws # -- -# aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value "\$\{REGION\}" aws-snippets-regions)}} ec2 delete-snapshot --snapshot-id ${4:`(yank)`} --output ${5:$$(yas-choose-value '("text" "table" "json"))} $0 \ No newline at end of file +aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value "\$\{REGION\}" aws-snippets-regions)}} ec2 delete-snapshot --snapshot-id ${4:`(current-kill 0)`} --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-ec2-delete-volume b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-delete-volume index a64b3ae7..62caa0cf 100644 --- a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-delete-volume +++ b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-delete-volume @@ -3,4 +3,4 @@ # key: ebs-del # group: aws # -- -# aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value "\$\{REGION\}" aws-snippets-regions)}} ec2 delete-volume --volume-id ${4:`(yank)`} $0 +aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value "\$\{REGION\}" aws-snippets-regions)}} ec2 delete-volume --volume-id ${4:`(current-kill 0)`} $0 diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-describe-instance-attribute b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-describe-instance-attribute index 190296c4..57696cae 100644 --- a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-describe-instance-attribute +++ b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-describe-instance-attribute @@ -3,4 +3,4 @@ # key: ec2-attribute # group: aws # -- -aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value aws-snippets-regions)}} ec2 describe-instance-attribute --instance-id ${4:`(yank)`} --attribute ${5:$$(yas-choose-value '("instanceType" "kernel" "ramdisk" "userData" "disableApiTermination" "instanceInitiatedShutdownBehavior" "rootDeviceName" "blockDeviceMapping" "productCodes" "sourceDestCheck" "groupSet" "ebsOptimized" "sriovNetSupport"))} $0 \ No newline at end of file +aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value aws-snippets-regions)}} ec2 describe-instance-attribute --instance-id ${4:`(current-kill 0)`} --attribute ${5:$$(yas-choose-value '("instanceType" "kernel" "ramdisk" "userData" "disableApiTermination" "instanceInitiatedShutdownBehavior" "rootDeviceName" "blockDeviceMapping" "productCodes" "sourceDestCheck" "groupSet" "ebsOptimized" "sriovNetSupport"))} $0 \ No newline at end of file diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-describe-instance-status b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-describe-instance-status index 2664c953..b52b723b 100644 --- a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-describe-instance-status +++ b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-describe-instance-status @@ -3,4 +3,4 @@ # key: aws-ec2-describe-instance-status # group: aws # -- -aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value aws-snippets-regions)}} ec2 describe-instance-status --instance-ids ${4:`(yank)`} $0 \ No newline at end of file +aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value aws-snippets-regions)}} ec2 describe-instance-status --instance-ids ${4:`(current-kill 0)`} $0 \ No newline at end of file diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-describe-userdata b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-describe-userdata index 5c001662..ace7b2d1 100644 --- a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-describe-userdata +++ b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-describe-userdata @@ -3,4 +3,4 @@ # key: ec2-userdata # group: aws # -- -(base64-decode-string (shell-command-to-string "aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value aws-snippets-regions)}} ec2 describe-instance-attribute --instance-id ${4:`(yank)`} --attribute userData --query 'UserData.Value' --output text"))$0 +(base64-decode-string (shell-command-to-string "aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value aws-snippets-regions)}} ec2 describe-instance-attribute --instance-id ${4:`(current-kill 0)`} --attribute userData --query 'UserData.Value' --output text"))$0 diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-console-output b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-console-output index 5c5c7f58..597a1bed 100644 --- a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-console-output +++ b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-console-output @@ -3,4 +3,4 @@ # key: ec2-console # group: aws # -- -aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value aws-snippets-regions)}} ec2 get-console-output --output text --instance-id ${4:`(yank)`} ># $0 \ No newline at end of file +aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value aws-snippets-regions)}} ec2 get-console-output --output text --instance-id ${4:`(current-kill 0)`} ># $0 \ No newline at end of file diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-dns-names b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-dns-names index b0b4c050..79ac75bf 100644 --- a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-dns-names +++ b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-dns-names @@ -3,4 +3,4 @@ # key: aws-ec2-get-dns-names # group: aws # -- -aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value aws-snippets-regions)}} ec2 describe-instances --filters "Name=tag:Name,Values=$4" --query "Reservations[].Instances[?State.Name=='running'].[InstanceId, PublicDnsName]" --output ${5:$$(yas-choose-value '("text" "table" "json"))} $0 +aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value aws-snippets-regions)}} ec2 describe-instances --filters "Name=tag:Name,Values=$4" --query "`(print aws-snippets-ec2-get-dns-names-query)`" --output ${5:$$(yas-choose-value '("text" "table" "json"))} $0 diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-instance-details b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-instance-details index d8ddf33b..4d38a909 100644 --- a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-instance-details +++ b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-instance-details @@ -3,4 +3,4 @@ # key: ec2-det # group: aws # -- -aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value aws-snippets-regions)}} ec2 describe-instances --instance-ids ${4:`(yank)`} $0 \ No newline at end of file +aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value aws-snippets-regions)}} ec2 describe-instances --instance-ids ${4:`(current-kill 0)`} $0 \ No newline at end of file diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-instance-volumes b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-instance-volumes index 789d3fa6..ccfd0c81 100644 --- a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-instance-volumes +++ b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-instance-volumes @@ -3,4 +3,4 @@ # key: ec2-vol # group: aws # -- -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(' ', BlockDeviceMappings[].Ebs.VolumeId)]" --output ${4:$$(yas-choose-value '("text" "table" "json"))} $0 +aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value "\$\{REGION\}" aws-snippets-regions)}} ec2 describe-instances --query "`(print aws-snippets-ec2-get-instance-volumes-query)`" --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-20180111.001/snippets/eshell-mode/aws-ec2-get-securitygroup-details index 4ab840d8..ac2f7fca 100644 --- a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-securitygroup-details +++ b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-securitygroup-details @@ -3,4 +3,4 @@ # key: aws-ec2-get-securitygroup-details # group: aws # -- -aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value "\$\{REGION\}" aws-snippets-regions)}} ec2 describe-security-groups --group-ids ${4:`(yank)`} $0 \ No newline at end of file +aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value "\$\{REGION\}" aws-snippets-regions)}} ec2 describe-security-groups --group-ids ${4:`(current-kill 0)`} $0 \ No newline at end of file diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-securitygroup-references b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-securitygroup-references index 30eb564a..17857460 100644 --- a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-securitygroup-references +++ b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-securitygroup-references @@ -3,4 +3,4 @@ # key: aws-ec2-get-securitygroup-references # group: aws # -- -aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value "\$\{REGION\}" aws-snippets-regions)}} ec2 describe-security-group-references --group-id ${4:`(yank)`} $0 \ No newline at end of file +aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value "\$\{REGION\}" aws-snippets-regions)}} ec2 describe-security-group-references --group-id ${4:`(current-kill 0)`} $0 \ No newline at end of file diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-securitygroups b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-securitygroups index 0c017d03..b71e0b71 100644 --- a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-securitygroups +++ b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-securitygroups @@ -1,6 +1,6 @@ # -*- mode: snippet -*- # name: aws-ec2-get-securitygroups -# key: aws-ec2-get-securitygroups +# key: sg-ls # group: aws # -- -aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value "\$\{REGION\}" aws-snippets-regions)}} ec2 describe-security-groups --query "sort_by(SecurityGroups, &GroupName)[*].[GroupName, GroupId, Description]" --output ${4:$$(yas-choose-value '("text" "table" "json"))} $0 \ No newline at end of file +aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value "\$\{REGION\}" aws-snippets-regions)}} ec2 describe-security-groups --query "`(print aws-snippets-ec2-get-securitygroups-query)`" --output ${4:$$(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-ec2-get-snapshot-details b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-snapshot-details index ff38f412..1f5dc2af 100644 --- a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-snapshot-details +++ b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-snapshot-details @@ -3,4 +3,4 @@ # key: snap-det # group: aws # -- -aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value "\$\{REGION\}" aws-snippets-regions)}} ec2 describe-snapshots --snapshot-id ${4:`(yank)`} --output ${5:$$(yas-choose-value '("text" "table" "json"))} $0 \ No newline at end of file +aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value "\$\{REGION\}" aws-snippets-regions)}} ec2 describe-snapshots --snapshot-id ${4:`(current-kill 0)`} --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-ec2-get-snapshots b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-snapshots index 4d9cff89..31c47d81 100644 --- a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-snapshots +++ b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-snapshots @@ -3,4 +3,4 @@ # key: snap-ls # group: aws # -- -aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value "\$\{REGION\}" aws-snippets-regions)}} ec2 describe-snapshots --query 'Snapshots[].[join(\`,\`,Tags[?Key==\`Name\`].Value),StartTime,Description,SnapshotId,VolumeId,VolumeSize,Progress]' --output ${4:$$(yas-choose-value '("text" "table" "json"))} $0 +aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value "\$\{REGION\}" aws-snippets-regions)}} ec2 describe-snapshots --query '`(print aws-snippets-ec2-get-snapshots-query)`' --output ${4:$$(yas-choose-value '("text" "table" "json"))} $0 diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-volumes b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-volumes index 066c223f..546f1739 100644 --- a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-volumes +++ b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-volumes @@ -3,4 +3,4 @@ # key: ebs-ls # group: aws # -- -aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value "\$\{REGION\}" aws-snippets-regions)}} ec2 describe-volumes --query 'Volumes[].[VolumeId,State,SnapshotId,join(\`,\`,Tags[?Key==\`Name\`].Value)]' --output ${4:$$(yas-choose-value '("text" "table" "json"))} $0 +aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value "\$\{REGION\}" aws-snippets-regions)}} ec2 describe-volumes --query '`(print aws-snippets-ec2-get-volumes-query)`' --output ${4:$$(yas-choose-value '("text" "table" "json"))} $0 diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-volumes-unused b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-volumes-unused index ac2cb22a..65c94338 100644 --- a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-volumes-unused +++ b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-volumes-unused @@ -3,4 +3,4 @@ # key: ebs-ls-avail # group: aws # -- -aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value "\$\{REGION\}" aws-snippets-regions)}} ec2 describe-volumes --query 'Volumes[].[VolumeId,Size,VolumeType,CreateTime,State,SnapshotId]' --filters Name=status,Values=available --output ${4:$$(yas-choose-value '("text" "table" "json"))} $0 +aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value "\$\{REGION\}" aws-snippets-regions)}} ec2 describe-volumes --query '`(print aws-snippets-ec2-get-volumes-unused-query)`' --filters Name=status,Values=available --output ${4:$$(yas-choose-value '("text" "table" "json"))} $0 diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-instance-running b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-instance-running index fe309488..c2ae1028 100644 --- a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-instance-running +++ b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-instance-running @@ -1,6 +1,6 @@ # -*- mode: snippet -*- # name: aws-ec2-instance-running -# key: aws-ec2-instance-running +# key: ec2state # group: aws # -- -aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value aws-snippets-regions)}} ec2 describe-instances --instance-ids $4 --query "Reservations[].Instances[].[InstanceId, State.Name]" --output ${5:$$(yas-choose-value '("text" "table" "json"))} $0 +aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value aws-snippets-regions)}} ec2 describe-instances --instance-ids ${4:`(current-kill 0)`} --query "`(print aws-snippets-ec2-instance-running-query)`" --output ${5:$$(yas-choose-value '("text" "table" "json"))} $0 diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-list-subnets b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-list-subnets index 93c71d40..9b99e144 100644 --- a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-list-subnets +++ b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-list-subnets @@ -3,4 +3,4 @@ # key: sub-ls # group: aws # -- -aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value aws-snippets-regions)}} ec2 describe-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)" --output ${4:$$(yas-choose-value '("table" "text" "json"))} $0 \ No newline at end of file +aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value aws-snippets-regions)}} ec2 describe-subnets --query "`(print aws-snippets-ec2-list-subnets-query)`" --output ${4:$$(yas-choose-value '("table" "text" "json"))} $0 \ No newline at end of file diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-list-vpcs b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-list-vpcs index 737a5c89..82ebfd89 100644 --- a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-list-vpcs +++ b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-list-vpcs @@ -3,4 +3,4 @@ # key: vpc-ls # group: aws # -- -aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value aws-snippets-regions)}} ec2 describe-vpcs --query "sort_by(Vpcs[].{VpcId:VpcId, State:State, AvailabilityZone:AvailabilityZone, CidrBlock:CidrBlock, AvailableIpAddressCount:AvailableIpAddressCount Tags:to_string(Tags[].[Key, Value])}, &VpcId)" --output ${4:$$(yas-choose-value '("table" "text" "json"))} $0 \ No newline at end of file +aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value aws-snippets-regions)}} ec2 describe-vpcs --query "`(print aws-snippets-ec2-list-vpcs-query)`" --output ${4:$$(yas-choose-value '("table" "text" "json"))} $0 \ No newline at end of file diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-volume-details b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-volume-details index 09dcbec9..0b1461a9 100644 --- a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-volume-details +++ b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-volume-details @@ -3,4 +3,4 @@ # key: ebs-det # group: aws # -- -aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value "\$\{REGION\}" aws-snippets-regions)}} ec2 describe-volumes --volume-ids ${4:`(yank)`} --output ${5:$$(yas-choose-value '("text" "table" "json"))} $0 +aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value "\$\{REGION\}" aws-snippets-regions)}} ec2 describe-volumes --volume-ids ${4:`(current-kill 0)`} --output ${5:$$(yas-choose-value '("text" "table" "json"))} $0 diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-elb-describe-instance-health b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-elb-describe-instance-health index 9270a3c6..07fd787f 100644 --- a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-elb-describe-instance-health +++ b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-elb-describe-instance-health @@ -3,4 +3,4 @@ # key: aws-elb-describe-instance-health # group: aws # -- -aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value aws-snippets-regions)}} elb describe-instance-health --load-balancer-name ${4:`(yank)`} --output ${5:$$(yas-choose-value '("text" "table" "json"))} $0 \ No newline at end of file +aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value aws-snippets-regions)}} elb describe-instance-health --load-balancer-name ${4:`(current-kill 0)`} --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-elb-describe-load-balancer b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-elb-describe-load-balancer index 9df162fc..168e4cb5 100644 --- a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-elb-describe-load-balancer +++ b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-elb-describe-load-balancer @@ -3,4 +3,4 @@ # key: aws-elb-describe-load-balancer # group: aws # -- -aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value aws-snippets-regions)}} elb describe-load-balancers --load-balancer-name ${4:`(yank)`} --output ${5:$$(yas-choose-value '("text" "table" "json"))} $0 \ No newline at end of file +aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value aws-snippets-regions)}} elb describe-load-balancers --load-balancer-name ${4:`(current-kill 0)`} --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-elb-describe-load-balancer-attributes b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-elb-describe-load-balancer-attributes index 045b9be8..113ce4e0 100644 --- a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-elb-describe-load-balancer-attributes +++ b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-elb-describe-load-balancer-attributes @@ -3,4 +3,4 @@ # key: aws-elb-describe-load-balancer-attributes # group: aws # -- -aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value aws-snippets-regions)}} elb describe-load-balancer-attributes --load-balancer-name ${4:`(yank)`} --output ${5:$$(yas-choose-value '("text" "table" "json"))} $0 \ No newline at end of file +aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value aws-snippets-regions)}} elb describe-load-balancer-attributes --load-balancer-name ${4:`(current-kill 0)`} --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-elb-get-list b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-elb-get-list index c9014001..a7c5b3ed 100644 --- a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-elb-get-list +++ b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-elb-get-list @@ -3,4 +3,4 @@ # key: elb-ls # group: aws # -- -aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value aws-snippets-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 +aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value aws-snippets-regions)}} elb describe-load-balancers --query "`(print aws-snippets-elb-get-list-query)`" --output ${4:$$(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-emr-describe-cluster b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-emr-describe-cluster index 08d9d7cc..c00cdcbc 100644 --- a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-emr-describe-cluster +++ b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-emr-describe-cluster @@ -3,4 +3,4 @@ # key: aws-emr-describe-cluster # group: aws # -- -aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} --region=${2:$$(yas-choose-value "\$\{REGION\}" aws-snippets-regions)} emr describe-cluster --cluster-id ${3: `(yank)`} --output ${4:$$(yas-choose-value '("text" "table" "json"))} $0 \ No newline at end of file +aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} --region=${2:$$(yas-choose-value "\$\{REGION\}" aws-snippets-regions)} emr describe-cluster --cluster-id ${3: `(current-kill 0)`} --output ${4:$$(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-emr-list-clusters b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-emr-list-clusters index a5dfb697..175a66ef 100644 --- a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-emr-list-clusters +++ b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-emr-list-clusters @@ -3,4 +3,4 @@ # key: emr-ls # group: aws # -- -aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} --region=${2:$$(yas-choose-value "\$\{REGION\}" aws-snippets-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 +aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} --region=${2:$$(yas-choose-value "\$\{REGION\}" aws-snippets-regions)} emr list-clusters --active --query '`(print aws-snippets-emr-list-clusters-query)`' --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-logs-set-retention b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-logs-set-retention index edee33dd..d071bd3a 100644 --- a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-logs-set-retention +++ b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-logs-set-retention @@ -3,4 +3,4 @@ # key: logs-set-ret # group: aws # -- -aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value "\$\{REGION\}" aws-snippets-regions)}} logs put-retention-policy --log-group-name ${4:`(yank)`} --retention-in-days ${5:$$(yas-choose-value '( "60" "1" "3" "5" "7" "14" "30" "90" "120" "150" "180" "365" "400" "545" "731" "1827" "3653"))} $0 +aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value "\$\{REGION\}" aws-snippets-regions)}} logs put-retention-policy --log-group-name ${4:`(current-kill 0)`} --retention-in-days ${5:$$(yas-choose-value '( "60" "1" "3" "5" "7" "14" "30" "90" "120" "150" "180" "365" "400" "545" "731" "1827" "3653"))} $0 diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-rds-describe-db-instance-details b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-rds-describe-db-instance-details index c1d84b01..adcade0d 100644 --- a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-rds-describe-db-instance-details +++ b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-rds-describe-db-instance-details @@ -3,4 +3,4 @@ # key: aws-rds-describe-db-instance-details # group: aws # -- -aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value aws-snippets-regions)}} rds describe-db-instances --db-instance-identifier ${4:`(yank)`} --output ${5:$$(yas-choose-value '("text" "table" "json"))} $0 \ No newline at end of file +aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value aws-snippets-regions)}} rds describe-db-instances --db-instance-identifier ${4:`(current-kill 0)`} --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-instances b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-rds-describe-db-instances index 909e1bf3..4f75830d 100644 --- a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-rds-describe-db-instances +++ b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-rds-describe-db-instances @@ -3,4 +3,4 @@ # key: rds-ls # group: aws # -- -aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value aws-snippets-regions)}} rds describe-db-instances --query "DBInstances[*].[DBInstanceIdentifier,DbiResourceId, Endpoint.Address]" --output ${5:$$(yas-choose-value '("text" "table" "json"))} $0 \ No newline at end of file +aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value aws-snippets-regions)}} rds describe-db-instances --query "`(print aws-snippets-rds-describe-instances-query)`" --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-parameters b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-rds-describe-parameters index 917a10dc..48fb633e 100644 --- a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-rds-describe-parameters +++ b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-rds-describe-parameters @@ -3,4 +3,4 @@ # key: aws-rds-describe-parameters # group: aws # -- -aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value aws-snippets-regions)}} rds describe-db-parameters --db-parameter-group-name ${4:`(yank)`} --query "Parameters[*][ParameterName, ParameterValue]" --output ${5:$$(yas-choose-value '("text" "table" "json"))} $0 +aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value aws-snippets-regions)}} rds describe-db-parameters --db-parameter-group-name ${4:`(current-kill 0)`} --query "Parameters[*][ParameterName, ParameterValue]" --output ${5:$$(yas-choose-value '("text" "table" "json"))} $0 diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-route53-list-hosted-zones b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-route53-list-hosted-zones index 07dec341..6fbe41ef 100644 --- a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-route53-list-hosted-zones +++ b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-route53-list-hosted-zones @@ -3,4 +3,4 @@ # key: r53-ls # group: aws # -- -aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} route53 list-hosted-zones --query 'HostedZones[].[Id, Name]' --output ${5:$$(yas-choose-value '("text" "table" "json"))} $0 \ No newline at end of file +aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} route53 list-hosted-zones --query '`(print aws-snippets-route53-list-hosted-zones-query)`' --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-route53-list-resource-record-sets b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-route53-list-resource-record-sets index 9e302ea2..bf70025f 100644 --- a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-route53-list-resource-record-sets +++ b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-route53-list-resource-record-sets @@ -3,4 +3,4 @@ # key: aws-route53-list-resource-record-sets # group: aws # -- -aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} route53 list-resource-record-sets --hosted-zone-id ${2:`(yank)`} --query \"ResourceRecordSets[?contains(Name, '$3')]\" --output ${5:$$(yas-choose-value '("text" "table" "json"))} $0 +aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} route53 list-resource-record-sets --hosted-zone-id ${2:`(current-kill 0)`} --query \"ResourceRecordSets[?contains(Name, '$3')]\" --output ${5:$$(yas-choose-value '("text" "table" "json"))} $0 diff --git a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-support-describe b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-support-describe index 39ebbdc9..d8baaf78 100644 --- a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-support-describe +++ b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-support-describe @@ -3,4 +3,4 @@ # key: support-desc # group: aws # -- -aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value aws-snippets-regions)}} support describe-communications --case-id ${4:`(yank)`} --output ${5:$$(yas-choose-value '("text" "table" "json"))} $0 \ No newline at end of file +aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value aws-snippets-regions)}} support describe-communications --case-id ${4:`(current-kill 0)`} --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-support-details b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-support-details deleted file mode 100644 index c60abebd..00000000 --- a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-support-details +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: aws-support-ls -# key: support-ls -# group: aws -# -- -aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value aws-snippets-regions)}} support describe-cases --no-include-communications --query "reverse(sort_by(cases, &timeCreated)[].[subject, timeCreated, displayId])" --output ${4:$$(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-support-ls b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-support-ls index 6acaeb1d..7540de69 100644 --- a/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-support-ls +++ b/elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-support-ls @@ -3,4 +3,4 @@ # key: support-ls # group: aws # -- -aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value aws-snippets-regions)}} support describe-cases --no-include-communications --query "reverse(sort_by(cases, &timeCreated)[].[caseId, subject, timeCreated, displayId])" --output ${4:$$(yas-choose-value '("text" "table" "json"))} $0 \ No newline at end of file +aws --profile=${1:$$(yas-choose-value aws-snippets-profiles)} ${2:--region=${3:$$(yas-choose-value aws-snippets-regions)}} support describe-cases --no-include-communications --query "`(print aws-snippets-aws-support-ls-query)`" --output ${4:$$(yas-choose-value '("text" "table" "json"))} $0 \ No newline at end of file