]> git.bundesbrandschatzamt.de Git - emacsconfig.git/commitdiff
snippets/eshell-mode/aws*
authorAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Wed, 26 Apr 2017 11:21:06 +0000 (13:21 +0200)
committerAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Wed, 26 Apr 2017 11:21:06 +0000 (13:21 +0200)
* added bba-aws-profiles variable.

Signed-off-by: Andreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
33 files changed:
snippets/eshell-mode/aws-autoscaling-describe-auto-scaling-groups
snippets/eshell-mode/aws-autoscaling-describe-launch-configurations
snippets/eshell-mode/aws-autoscaling-update-auto-scaling-group-min-max
snippets/eshell-mode/aws-ec2-describe-instance-attribute
snippets/eshell-mode/aws-ec2-describe-instance-status
snippets/eshell-mode/aws-ec2-describe-userdata
snippets/eshell-mode/aws-ec2-get-console-output
snippets/eshell-mode/aws-ec2-get-dns-names
snippets/eshell-mode/aws-ec2-get-instance-details
snippets/eshell-mode/aws-ec2-get-instance-volumes
snippets/eshell-mode/aws-ec2-get-instances
snippets/eshell-mode/aws-ec2-get-securitygroup-details
snippets/eshell-mode/aws-ec2-get-securitygroup-references
snippets/eshell-mode/aws-ec2-get-securitygroups
snippets/eshell-mode/aws-ec2-get-snapshot-details
snippets/eshell-mode/aws-ec2-get-snapshots
snippets/eshell-mode/aws-ec2-get-volumes
snippets/eshell-mode/aws-ec2-instance-running
snippets/eshell-mode/aws-ec2-start-stop-instance
snippets/eshell-mode/aws-ec2-volume-details
snippets/eshell-mode/aws-elb-describe-instance-health
snippets/eshell-mode/aws-elb-describe-load-balancer
snippets/eshell-mode/aws-elb-describe-load-balancer-attributes
snippets/eshell-mode/aws-elb-get-list
snippets/eshell-mode/aws-elb-search
snippets/eshell-mode/aws-emr-describe-cluster
snippets/eshell-mode/aws-emr-list-clusters
snippets/eshell-mode/aws-rds-describe-db-instance-details
snippets/eshell-mode/aws-rds-describe-db-instances
snippets/eshell-mode/aws-rds-describe-db-parameter-groups
snippets/eshell-mode/aws-rds-describe-parameters
snippets/eshell-mode/aws-route53-list-hosted-zones
snippets/eshell-mode/aws-route53-list-resource-record-sets

index 2d71f0f7bbf76a04e3678fe65c8291f4c69b16c0..11b8045735c90210962d8b922fb088fbb939ae13 100644 (file)
@@ -2,4 +2,4 @@
 # name: aws-autoscaling-describe-auto-scaling-groups
 # key: aws-autoscaling-describe-auto-scaling-groups
 # --
-aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value "\$\{REGION\}" bba-aws-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 bba-aws-profiles)} ${2:--region=${3:$$(yas-choose-value "\$\{REGION\}" bba-aws-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
index ebdfb98a967c8e337ce50560670e860b02c42b25..25264cf94e394d3cd6d58617073f261489891561 100644 (file)
@@ -2,4 +2,4 @@
 # name: aws-autoscaling-describe-launch-configurations
 # key: aws-autoscaling-describe-launch-configurations
 # --
-aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value "\$\{REGION\}" bba-aws-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 bba-aws-profiles)} ${2:--region=${3:$$(yas-choose-value "\$\{REGION\}" bba-aws-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
index 4c4c2068e49e866eda39ba2fee921ce9233259ae..d1192c6219c82f780ffa0f2e24e781dd9de13094 100644 (file)
@@ -2,4 +2,4 @@
 # name: aws-autoscaling-update-auto-scaling-group-min-max
 # key: aws-autoscaling-update-auto-scaling-group-min-max
 # --
-aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value "\$\{REGION\}" bba-aws-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 bba-aws-profiles)} ${2:--region=${3:$$(yas-choose-value "\$\{REGION\}" bba-aws-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
index f09e22d58a85ab58a44b8f31e85f6a9ffc21ead9..abd99d518fabdde70fd3dd69891f2b000144285e 100644 (file)
@@ -2,4 +2,4 @@
 # name: aws-ec2-describe-instance-attribute (yank)
 # key: ec2-attribute
 # --
-aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value bba-aws-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 bba-aws-profiles)} ${2:--region=${3:$$(yas-choose-value bba-aws-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
index f977daf8d5455cc847b8457190498b07a6fb137e..50c790cdd36f957a0d46e2daa3ba316436aea14d 100644 (file)
@@ -2,4 +2,4 @@
 # name: aws-ec2-describe-instance-status (yank)
 # key: aws-ec2-describe-instance-status
 # --
-aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value bba-aws-regions)}} ec2 describe-instance-status --instance-ids ${4:`(yank)`} $0
\ No newline at end of file
+aws --profile=${1:$$(yas-choose-value bba-aws-profiles)} ${2:--region=${3:$$(yas-choose-value bba-aws-regions)}} ec2 describe-instance-status --instance-ids ${4:`(yank)`} $0
\ No newline at end of file
index af3c3e6f8941046469157f2e50c2d49efac3e7ec..e419728c9f5424a3ae13a9dac68dbfda13f105a3 100644 (file)
@@ -2,4 +2,4 @@
 # name: aws-ec2-describe-userdata (yank)
 # key: ec2-userdata
 # --
-(base64-decode-string (shell-command-to-string "aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value bba-aws-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 bba-aws-profiles)} ${2:--region=${3:$$(yas-choose-value bba-aws-regions)}} ec2 describe-instance-attribute --instance-id ${4:`(yank)`} --attribute userData --query 'UserData.Value' --output text"))$0
index e823d6afe998a4666e55fc0db9752ba76a5b2d2b..0b873eb917308dc4b318eb99c300b7987b9bef8f 100644 (file)
@@ -2,4 +2,4 @@
 # name: aws-ec2-get-console-output (yank)
 # key: ec2-console
 # --
-aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value bba-aws-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 bba-aws-profiles)} ${2:--region=${3:$$(yas-choose-value bba-aws-regions)}} ec2 get-console-output --output text --instance-id ${4:`(yank)`} >#<buffer *$4-console-output*> $0
\ No newline at end of file
index 23d594e4338c87761debb1442ee0460c6f8c1f0c..0d3e06a03e8c0d7469044a3d36edc404e00b03d5 100644 (file)
@@ -2,4 +2,4 @@
 # name: aws-ec2-get-dns-names
 # key: aws-ec2-get-dns-names
 # --
-aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value bba-aws-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 bba-aws-profiles)} ${2:--region=${3:$$(yas-choose-value bba-aws-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
index 644ed68ac19d39a9670f849c5bc9cd9e6a66605b..0cbc165c1844d1a9e86c430dd73a4f9ac748898c 100644 (file)
@@ -2,4 +2,4 @@
 # name: aws-ec2-get-instance-details (yank)
 # key: ec2-det
 # --
-aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value bba-aws-regions)}} ec2 describe-instances --instance-ids ${4:`(yank)`} $0
\ No newline at end of file
+aws --profile=${1:$$(yas-choose-value bba-aws-profiles)} ${2:--region=${3:$$(yas-choose-value bba-aws-regions)}} ec2 describe-instances --instance-ids ${4:`(yank)`} $0
\ No newline at end of file
index 466025cea937d41add852c24b4ce3ee61f94baaa..1f2d0c38c8b266238d16985d5ca7be75954782d5 100644 (file)
@@ -2,4 +2,4 @@
 # name: aws-ec2-get-instance-volumes
 # key: ec2-vol
 # --
-aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value "\$\{REGION\}" bba-aws-regions)}} ec2 describe-instances --query "Reservations[].Instances[].[join(\`,\`,Tags[?Key==\`Name\`].Value),join(' ', BlockDeviceMappings[].Ebs.VolumeId)]" --output ${4:$$(yas-choose-value '("text" "table" "json"))} $0
+aws --profile=${1:$$(yas-choose-value bba-aws-profiles)} ${2:--region=${3:$$(yas-choose-value "\$\{REGION\}" bba-aws-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
index d0b133f6988fb35138a895ebbd416e1b87ae439e..16511aee223d9c97d6162c20be46c9edac12cf1e 100644 (file)
@@ -2,4 +2,4 @@
 # name: aws-ec2-get-instances
 # key: ec2-ls
 # --
-aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value "\$\{REGION\}" bba-aws-regions)}} ec2 describe-instances --query 'Reservations[].Instances[].[join(\`,\`,Tags[?Key==\`Name\`].Value),join(\`,\`,Tags[?Key==\`Schedule\`].Value),InstanceId, State.Name, PublicDnsName, InstanceType,Placement.AvailabilityZone,LaunchTime]' --output ${4:$$(yas-choose-value '("text" "table" "json"))} $0
+aws --profile=${1:$$(yas-choose-value bba-aws-profiles)} ${2:--region=${3:$$(yas-choose-value "\$\{REGION\}" bba-aws-regions)}} ec2 describe-instances --query 'Reservations[].Instances[].[join(\`,\`,Tags[?Key==\`Name\`].Value),join(\`,\`,Tags[?Key==\`Schedule\`].Value),InstanceId, State.Name, PublicDnsName, InstanceType,Placement.AvailabilityZone,LaunchTime]' --output ${4:$$(yas-choose-value '("text" "table" "json"))} $0
index 9792a12c0307310b924fc12e405a782ee0e4fe44..3351db6a7d64a5dca9274e10d61857fdf5567a1f 100644 (file)
@@ -2,4 +2,4 @@
 # name: aws-ec2-get-securitygroup-details (yank)
 # key: aws-ec2-get-securitygroup-details
 # --
-aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value "\$\{REGION\}" bba-aws-regions)}} ec2 describe-security-groups --group-ids ${4:`(yank)`} $0
\ No newline at end of file
+aws --profile=${1:$$(yas-choose-value bba-aws-profiles)} ${2:--region=${3:$$(yas-choose-value "\$\{REGION\}" bba-aws-regions)}} ec2 describe-security-groups --group-ids ${4:`(yank)`} $0
\ No newline at end of file
index a50261412ba4837cdc56cce2349bf33229338d48..ae88534cdb8116913d0c3ceac96a751ace42f290 100644 (file)
@@ -2,4 +2,4 @@
 # name: aws-ec2-get-securitygroup-references (yank)
 # key: aws-ec2-get-securitygroup-references
 # --
-aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value "\$\{REGION\}" bba-aws-regions)}} ec2 describe-security-group-references --group-id ${4:`(yank)`} $0
\ No newline at end of file
+aws --profile=${1:$$(yas-choose-value bba-aws-profiles)} ${2:--region=${3:$$(yas-choose-value "\$\{REGION\}" bba-aws-regions)}} ec2 describe-security-group-references --group-id ${4:`(yank)`} $0
\ No newline at end of file
index d21779b01c5cd0a92656bb9f262028d7a4eb5981..9bc5dc2a59543a104990a4f87ab2e0e4fbcc0f72 100644 (file)
@@ -2,4 +2,4 @@
 # name: aws-ec2-get-securitygroups
 # key: aws-ec2-get-securitygroups
 # --
-aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value "\$\{REGION\}" bba-aws-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 bba-aws-profiles)} ${2:--region=${3:$$(yas-choose-value "\$\{REGION\}" bba-aws-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
index ec293a9a5a3f5182f6f7ba196814fffaeeed550b..2929212213977b4c74e66c4f6b1de6abd13f01e6 100644 (file)
@@ -2,4 +2,4 @@
 # name: aws-ec2-get-snapshot-details (yank)
 # key: snap-det
 # --
-aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value "\$\{REGION\}" bba-aws-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 bba-aws-profiles)} ${2:--region=${3:$$(yas-choose-value "\$\{REGION\}" bba-aws-regions)}} ec2 describe-snapshots --snapshot-id ${4:`(yank)`} --output ${5:$$(yas-choose-value '("text" "table" "json"))} $0
\ No newline at end of file
index d955ec6a006700a881ad09eb83a745a3efda043e..91cbdaf0ff35987ee643b3b67e9f855a41edf8a5 100644 (file)
@@ -2,4 +2,4 @@
 # name: aws-ec2-get-snapshots
 # key: snap-ls
 # --
-aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value "\$\{REGION\}" bba-aws-regions)}} ec2 describe-snapshots --query 'Snapshots[].[StartTime,Description,SnapshotId,VolumeId,VolumeSize,Progress]' --output ${4:$$(yas-choose-value '("text" "table" "json"))} $0
+aws --profile=${1:$$(yas-choose-value bba-aws-profiles)} ${2:--region=${3:$$(yas-choose-value "\$\{REGION\}" bba-aws-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
index c3d86a4613c0d210be8d27dd9f5f9cea14448979..4b3661d052e3107303e2122b0b7f5b344597b6c5 100644 (file)
@@ -2,4 +2,4 @@
 # name: aws-ec2-get-volumes
 # key: ebs-ls
 # --
-aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value "\$\{REGION\}" bba-aws-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 bba-aws-profiles)} ${2:--region=${3:$$(yas-choose-value "\$\{REGION\}" bba-aws-regions)}} ec2 describe-volumes --query 'Volumes[].[VolumeId,State,SnapshotId,join(\`,\`,Tags[?Key==\`Name\`].Value)]' --output ${4:$$(yas-choose-value '("text" "table" "json"))} $0
index 2147130cce0942412d966d82965d29955e39f5fc..f4e63d2068556ab3e191eaee22c18ffff58f7b6d 100644 (file)
@@ -2,4 +2,4 @@
 # name: aws-ec2-instance-running
 # key: aws-ec2-instance-running
 # --
-aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value bba-aws-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 bba-aws-profiles)} ${2:--region=${3:$$(yas-choose-value bba-aws-regions)}} ec2 describe-instances --instance-ids $4 --query "Reservations[].Instances[].[InstanceId, State.Name]" --output ${5:$$(yas-choose-value '("text" "table" "json"))} $0
index c04f27656d91a0178b6ce82aea12e4d33e652b5c..1828b4318bb6dc962ce4fc24677e752a4cc285b6 100644 (file)
@@ -2,4 +2,4 @@
 # name: aws-ec2-start-stop-instance (yank)
 # key: ec2-start
 # --
-aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value bba-aws-regions)}} ec2 ${4:$$(yas-choose-value '("start-instances" "stop-instances" "reboot-instances"))} --instance-ids ${5:`(yank)`} $0
\ No newline at end of file
+aws --profile=${1:$$(yas-choose-value bba-aws-profiles)} ${2:--region=${3:$$(yas-choose-value bba-aws-regions)}} ec2 ${4:$$(yas-choose-value '("start-instances" "stop-instances" "reboot-instances"))} --instance-ids ${5:`(yank)`} $0
\ No newline at end of file
index 621b72941cdbe26a8b92d57a9ba15f7841674bc0..2ba1eaae97393e1d45a34c3a43ee4b69d9fdcf9f 100644 (file)
@@ -2,4 +2,4 @@
 # name: aws-ec2-volume-details (yank)
 # key: ebs-det
 # --
-aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value "\$\{REGION\}" bba-aws-regions)}} ec2 describe-volumes --volume-ids ${4:`(yank)`}  --output ${5:$$(yas-choose-value '("text" "table" "json"))} $0
+aws --profile=${1:$$(yas-choose-value bba-aws-profiles)} ${2:--region=${3:$$(yas-choose-value "\$\{REGION\}" bba-aws-regions)}} ec2 describe-volumes --volume-ids ${4:`(yank)`}  --output ${5:$$(yas-choose-value '("text" "table" "json"))} $0
index 3bc7f82639d9522619eb6b3964d337ec1c6a6ba2..2feb0f15b04af5b89b57b6922cf2836a4ce7ad92 100644 (file)
@@ -2,4 +2,4 @@
 # name: aws-elb-describe-instance-health (yank)
 # key: aws-elb-describe-instance-health
 # --
-aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value bba-aws-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 bba-aws-profiles)} ${2:--region=${3:$$(yas-choose-value bba-aws-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
index 65a65bdd8f55b90078bc70aa0439798939593970..fdba3b43846140a4eec7ce78b1c3cef15af5fdcb 100644 (file)
@@ -2,4 +2,4 @@
 # name: aws-elb-describe-load-balancer (yank)
 # key: aws-elb-describe-load-balancer
 # --
-aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value bba-aws-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 bba-aws-profiles)} ${2:--region=${3:$$(yas-choose-value bba-aws-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
index 6a5ce089459ba4c1cead67eb61fc1d1c12f8ca98..61123b9e064273f857ee6fdf7909749eecdbb34b 100644 (file)
@@ -2,4 +2,4 @@
 # name: aws-elb-describe-load-balancer-attributes (yank)
 # key: aws-elb-describe-load-balancer-attributes
 # --
-aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value bba-aws-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 bba-aws-profiles)} ${2:--region=${3:$$(yas-choose-value bba-aws-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
index a57f49311cd2fe462708a28b5583fe4199cbef0c..0ffec5d57ce4f5569074f520be0149b87730161d 100644 (file)
@@ -2,4 +2,4 @@
 # name: aws-elb-get-list
 # key: elb-ls
 # --
-aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value bba-aws-regions)}} elb describe-load-balancers --query "reverse(sort_by(LoadBalancerDescriptions, &CreatedTime)[].[LoadBalancerName, CreatedTime])" --output ${4:$$(yas-choose-value '("text" "table" "json"))} $0
\ No newline at end of file
+aws --profile=${1:$$(yas-choose-value bba-aws-profiles)} ${2:--region=${3:$$(yas-choose-value bba-aws-regions)}} elb describe-load-balancers --query "reverse(sort_by(LoadBalancerDescriptions, &CreatedTime)[].[LoadBalancerName, CreatedTime])" --output ${4:$$(yas-choose-value '("text" "table" "json"))} $0
\ No newline at end of file
index 080e8ea86c59932b35f3daf081f2f4aeebeeff16..a2b6f21013880fd8d834c5c4a63b2b5180cc3554 100644 (file)
@@ -3,7 +3,7 @@
 # key: aws-elb-search
 # --
 for REGION in `(insert-string (mapconcat 'identity bba-aws-regions " "))`; do
-    for BALANCER in \`aws --profile=${1:$$(yas-choose-value '("prod" "test"))} --region=\${REGION} elb describe-load-balancers --query "reverse(sort_by(LoadBalancerDescriptions, &CreatedTime)[].[LoadBalancerName])" --output text\`; do
+    for BALANCER in \`aws --profile=${1:$$(yas-choose-value bba-aws-profiles)} --region=\${REGION} elb describe-load-balancers --query "reverse(sort_by(LoadBalancerDescriptions, &CreatedTime)[].[LoadBalancerName])" --output text\`; do
         aws --profile=$1 --region=\${REGION} elb describe-load-balancers --load-balancer-name \${BALANCER} --output text | awk "{print \\"\${REGION}:\${BALANCER}:\\"\\\$0}"
     done
 done $0
index 8a971c53e2e665fa5ac8f67e075c9d613031bcba..1ccd61a0810f363b0095d668936e243a792e65f3 100644 (file)
@@ -2,4 +2,4 @@
 # name: aws-emr-describe-cluster (yank)
 # key: aws-emr-describe-cluster
 # --
-aws --profile=${1:$$(yas-choose-value '("prod" "test"))} --region=${2:$$(yas-choose-value "\$\{REGION\}" bba-aws-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 bba-aws-profiles)} --region=${2:$$(yas-choose-value "\$\{REGION\}" bba-aws-regions)} emr describe-cluster --cluster-id ${3: `(yank)`} --output ${4:$$(yas-choose-value '("text" "table" "json"))} $0
\ No newline at end of file
index 67c332df4731376732a645df4df898146219a54a..fae2fbe92ee857061925d8c0975a65a630a44092 100644 (file)
@@ -2,4 +2,4 @@
 # name: aws-emr-list-clusters
 # key: emr-ls
 # --
-aws --profile=${1:$$(yas-choose-value '("prod" "test"))} --region=${2:$$(yas-choose-value "\$\{REGION\}" bba-aws-regions)} emr list-clusters --active --query 'Clusters[*].{ID: Id, NAME: Name}' --output ${5:$$(yas-choose-value '("text" "table" "json"))} $0
\ No newline at end of file
+aws --profile=${1:$$(yas-choose-value bba-aws-profiles)} --region=${2:$$(yas-choose-value "\$\{REGION\}" bba-aws-regions)} emr list-clusters --active --query 'Clusters[*].{ID: Id, NAME: Name}' --output ${5:$$(yas-choose-value '("text" "table" "json"))} $0
\ No newline at end of file
index f77553c9b8d4e73a9b8021f02761d6badd7c97ca..fd6979ebf02436a649f124b11185299fa2c44d1d 100644 (file)
@@ -2,4 +2,4 @@
 # name: aws-rds-describe-db-instance-details (yank)
 # key: aws-rds-describe-db-instance-details
 # --
-aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value bba-aws-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 bba-aws-profiles)} ${2:--region=${3:$$(yas-choose-value bba-aws-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
index 314a33a8bb9f32ce548f5d881d921bd5aab2c280..3d76795c797d293f9766e8cd06729e728755a95e 100644 (file)
@@ -2,4 +2,4 @@
 # name: aws-rds-describe-db-instances
 # key: rds-ls
 # --
-aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value bba-aws-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 bba-aws-profiles)} ${2:--region=${3:$$(yas-choose-value bba-aws-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
index 003b7e2c0fadfca1b951c74ef02622543409b685..28d3a3bf0f72b2186f0e376eaf06fd10d6c3176a 100644 (file)
@@ -2,4 +2,4 @@
 # name: aws-rds-describe-db-parameter-groups
 # key: aws-rds-describe-db-parameter-groups
 # --
-aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value bba-aws-regions)}} rds describe-db-parameter-groups --output ${5:$$(yas-choose-value '("text" "table" "json"))} $0
\ No newline at end of file
+aws --profile=${1:$$(yas-choose-value bba-aws-profiles)} ${2:--region=${3:$$(yas-choose-value bba-aws-regions)}} rds describe-db-parameter-groups --output ${5:$$(yas-choose-value '("text" "table" "json"))} $0
\ No newline at end of file
index 9264b7348d8b0765d8e685d47d7a75e0c300c269..b63532d3752bfc91d217651846db43b0190b0ba1 100644 (file)
@@ -2,4 +2,4 @@
 # name: aws-rds-describe-parameters (yank)
 # key: aws-rds-describe-parameters
 # --
-aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value bba-aws-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 bba-aws-profiles)} ${2:--region=${3:$$(yas-choose-value bba-aws-regions)}} rds describe-db-parameters --db-parameter-group-name ${4:`(yank)`} --query "Parameters[*][ParameterName, ParameterValue]" --output ${5:$$(yas-choose-value '("text" "table" "json"))} $0
index 68c60620e07efa487d1a80e6ab63db4b4db9704f..9ed43fdb88e8edaf8d0025beb7860d7f7ab52b9c 100644 (file)
@@ -2,4 +2,4 @@
 # name: aws-route53-list-hosted-zones
 # key: r53-ls
 # --
-aws --profile=${1:$$(yas-choose-value '("prod" "test"))} route53 list-hosted-zones --query 'HostedZones[].[Id, Name]' --output ${5:$$(yas-choose-value '("text" "table" "json"))} $0
\ No newline at end of file
+aws --profile=${1:$$(yas-choose-value bba-aws-profiles)} route53 list-hosted-zones --query 'HostedZones[].[Id, Name]' --output ${5:$$(yas-choose-value '("text" "table" "json"))} $0
\ No newline at end of file
index 30585fb63d768084e5f4655b846d9b69d497dcf3..7654c2398101f19dd36cbbd99ecc0fb5d09f4880 100644 (file)
@@ -2,4 +2,4 @@
 # name: aws-route53-list-resource-record-sets (yank)
 # key: aws-route53-list-resource-record-sets
 # --
-aws --profile=${1:$$(yas-choose-value '("prod" "test"))} 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 bba-aws-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