]> git.bundesbrandschatzamt.de Git - emacsconfig.git/commitdiff
Adding custom varibles to aws-snippets.
authorAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Thu, 18 Jan 2018 22:43:22 +0000 (23:43 +0100)
committerAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Thu, 18 Jan 2018 22:43:22 +0000 (23:43 +0100)
Signed-off-by: Andreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
46 files changed:
elpa/aws-snippets-20180111.001/aws-snippets.el
elpa/aws-snippets-20180111.001/snippets/eshell-mode/ami-ls [deleted file]
elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ami-ls [new file with mode: 0644]
elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-autoscaling-describe-auto-scaling-groups
elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-autoscaling-describe-launch-configurations
elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-autoscaling-update-auto-scaling-group-min-max
elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-cloudformation-change-ls
elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-cloudformation-describe-change-set
elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-cloudformation-describe-stack
elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-cloudformation-describe-stack-events
elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-cloudformation-validate-template
elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-delete-snapshot
elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-delete-volume
elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-describe-instance-attribute
elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-describe-instance-status
elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-describe-userdata
elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-console-output
elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-dns-names
elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-instance-details
elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-instance-volumes
elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-securitygroup-details
elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-securitygroup-references
elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-securitygroups
elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-snapshot-details
elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-snapshots
elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-volumes
elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-get-volumes-unused
elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-instance-running
elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-list-subnets
elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-list-vpcs
elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-ec2-volume-details
elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-elb-describe-instance-health
elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-elb-describe-load-balancer
elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-elb-describe-load-balancer-attributes
elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-elb-get-list
elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-emr-describe-cluster
elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-emr-list-clusters
elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-logs-set-retention
elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-rds-describe-db-instance-details
elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-rds-describe-db-instances
elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-rds-describe-parameters
elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-route53-list-hosted-zones
elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-route53-list-resource-record-sets
elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-support-describe
elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-support-details [deleted file]
elpa/aws-snippets-20180111.001/snippets/eshell-mode/aws-support-ls

index 22e768e71130a351f9a62b229619eb4780f89c65..67e04dcb4271fc5deb76beb377309bb1bcc2832b 100644 (file)
@@ -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")))
   :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")))
   :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 (file)
index 4e7314f..0000000
+++ /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 (file)
index 0000000..0d456a1
--- /dev/null
@@ -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
index 50f261811f8021a0cf7403ac2ec9f81f0cefc668..cfe0bf8d2bacf1299f09e9713e003930576e633a 100644 (file)
@@ -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
index 80efeb9807dd535cdc5a7ebfbaaa327814af0df7..b7082fc33afdd2afc4136dc78044294914bd2484 100644 (file)
@@ -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
index 570379229b127b027172c90f1392ed6bdfdce05b..0370939448d37b91052fff38f65d00610418b400 100644 (file)
@@ -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
index 442fedcc8d2698ef9b5bb06ccc59234782533f54..825d942dca0e2a3a44d9c58cbfd482a8bb2a02b5 100644 (file)
@@ -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
index 2b6b8230daf8c0fc36f761c06bf6fc13823ada92..958515b14b15bedb256ce67606c5396e9edab76c 100644 (file)
@@ -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
index bf9a124148599d0c22b50c7e36875c8ded317e0f..143d7ed1c5aa2281ef5931abb65feb3a40bf56fc 100644 (file)
@@ -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
index b81cbc523620b1f9b4b07a75096a60191ddcedae..062be5e7a97e3183e53e7155fe861af33cb2892d 100644 (file)
@@ -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
index 344fc65abba0c7c19bfea41cf884d1b04f59e495..e288e3ef1cc2256809550b52332513e0e0fabf00 100644 (file)
@@ -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
index de02c9593e6b4a6816d959da4c8457954b9f00f8..be6faa846c35791b746a6462a6b2580cb710b671 100644 (file)
@@ -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
index a64b3ae7eb5d38019ad4d02ddf239f527c5d0e3b..62caa0cf47aaee0fbaa5b322c7200ef97c8055d7 100644 (file)
@@ -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
index 190296c4a26afa4d3f14a40545c98bcbaa23703b..57696cae7cbce05e8a207f4273440319776a7d9d 100644 (file)
@@ -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
index 2664c95312e7df610707828f5cdfec993fbdb873..b52b723bf42843550fcde59e22fa153040f398f4 100644 (file)
@@ -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
index 5c0016628929c798961626484e320f05ef200dec..ace7b2d177d00dfd8d9c50ef1a6c6c2c5ff7899a 100644 (file)
@@ -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
index 5c5c7f58c5ba98245d190411add157246be3cf76..597a1bed88347c637eac54053300bb08324a5d68 100644 (file)
@@ -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)`} >#<buffer *$4-console-output*> $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)`} >#<buffer *$4-console-output*> $0
\ No newline at end of file
index b0b4c0505ecec95d426181aa487c377b530083d1..79ac75bf8f2db0751a41c08ab28f1c8d285debe8 100644 (file)
@@ -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
index d8ddf33ba7cc435c967673061d8cf3e486b3ef30..4d38a909084b250c84c8f96892d4bf35b213dbbf 100644 (file)
@@ -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
index 789d3fa617a0aa5810ddf186ed5c664c4092e2c1..ccfd0c81cb46cd08d2e890d88bcd5e1d2ff74cab 100644 (file)
@@ -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
index 4ab840d8d0e3d13b314516958b176f31bbe5297c..ac2f7fca8218c5443ac180c09039329a30344783 100644 (file)
@@ -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
index 30eb564abcb18aae4be4c095bbceb9623beae395..178574602c2cbfa66f956c7f863b42ac2b3d18d1 100644 (file)
@@ -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
index 0c017d032251aa7b50a5df98f327ae8d0548fd33..b71e0b710769bab4ac6e4652154ad0b7b19a89eb 100644 (file)
@@ -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
index ff38f412b5c8134a6c55e64e94736af483ed847a..1f5dc2af2baebb58b1bc349311f77380f7e82924 100644 (file)
@@ -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
index 4d9cff893341a0bc1810b90c4298df3d18953622..31c47d8130fe6342d46b884db585b46b5df0ee91 100644 (file)
@@ -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
index 066c223fc10adb388dbe8fc4bb81d6e0f0be9072..546f173996244d8308a53d0545da7ca2c33af5ff 100644 (file)
@@ -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
index ac2cb22a18ab5a632b4dcc7e3554175f12b3baa3..65c94338a75cb376e64161a2e0bf036c436a7e42 100644 (file)
@@ -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
index fe30948807158ec8afdad1363a8ad32a7f0d5e62..c2ae102876f6ece4e838cd2603eac892c34d732d 100644 (file)
@@ -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
index 93c71d4053afd1399305a9cd8ba822b5f7fd6299..9b99e144990a3be8cb359c97a346d3191c931553 100644 (file)
@@ -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
index 737a5c89611180673866f0818ca4afc8ed7bc4ca..82ebfd899e21d303409f84093d7420d6e93e105e 100644 (file)
@@ -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
index 09dcbec99ec25e5f136097634aa7a81d771c56b4..0b1461a97d45670705f50b4e271c80caa1fd3314 100644 (file)
@@ -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
index 9270a3c69dda3aae547e0cb95b93145db6768945..07fd787f371fa291e44465eefce1dfd386ef774a 100644 (file)
@@ -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
index 9df162fc088bd90ceb0d85f65f88dbad26d40266..168e4cb5bc528e4e7dee19e5deca1ec9fa61d837 100644 (file)
@@ -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
index 045b9be83edb37d91ec405510d00630066fb5b44..113ce4e01005a9dfeea15a8497738f178914a484 100644 (file)
@@ -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
index c90140013751c73b9a4179c5e240e4ac04dce7a6..a7c5b3ed51c833e4ceb04f1fe89beee8528542e1 100644 (file)
@@ -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
index 08d9d7ccb33249f57f0746e10d26e4a9bb1de6a8..c00cdcbc9072a1fc22ef817d22f8708fe89cb947 100644 (file)
@@ -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
index a5dfb6977d8ddbe7d62d8b5e2a2b306c75c20456..175a66efcce75c297e36259501d0b84b9fb8bf4a 100644 (file)
@@ -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
index edee33ddf33e26c225245b81db6a648715c2e821..d071bd3ad74aae587466dd74cf6b69c592d14af0 100644 (file)
@@ -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
index c1d84b01413e48b0dde3d23658ba66f0640f08db..adcade0df13c62030dc32ddec4a907559b5729dd 100644 (file)
@@ -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
index 909e1bf326d4e5127f35943f43a45a9a9ad87134..4f75830dbc634823848764184f64171e84eb8c07 100644 (file)
@@ -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
index 917a10dc276b32ac69ccc018c9b3aed15e46669a..48fb633ed39578c2f975f5aa7817d0881a7072e1 100644 (file)
@@ -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
index 07dec341865302d3bcd463edd866ed540f1e61e4..6fbe41ef7ebf811be1584ecbff7f2f0a5f69a2ec 100644 (file)
@@ -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
index 9e302ea2132a8d265693277a40080d4f2296f47e..bf70025f642088ce5961eb6f426802d4dcd3812d 100644 (file)
@@ -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
index 39ebbdc96399844e54158ae91be6022146286595..d8baaf7846b5584126e892388979231839934071 100644 (file)
@@ -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 (file)
index c60abeb..0000000
+++ /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
index 6acaeb1d97b2d9c40fc6396516f5a1bc5b3a274a..7540de69d30990c29451e8935bb87ea43194b639 100644 (file)
@@ -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