From: Andreas Gerler Date: Wed, 26 Apr 2017 11:21:06 +0000 (+0200) Subject: snippets/eshell-mode/aws* X-Git-Url: http://git.bundesbrandschatzamt.de/?a=commitdiff_plain;h=799d7bbb1ee3f875773114d33c373dd97eee94ee;p=emacsconfig.git snippets/eshell-mode/aws* * added bba-aws-profiles variable. Signed-off-by: Andreas Gerler --- diff --git a/snippets/eshell-mode/aws-autoscaling-describe-auto-scaling-groups b/snippets/eshell-mode/aws-autoscaling-describe-auto-scaling-groups index 2d71f0f7..11b80457 100644 --- a/snippets/eshell-mode/aws-autoscaling-describe-auto-scaling-groups +++ b/snippets/eshell-mode/aws-autoscaling-describe-auto-scaling-groups @@ -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 diff --git a/snippets/eshell-mode/aws-autoscaling-describe-launch-configurations b/snippets/eshell-mode/aws-autoscaling-describe-launch-configurations index ebdfb98a..25264cf9 100644 --- a/snippets/eshell-mode/aws-autoscaling-describe-launch-configurations +++ b/snippets/eshell-mode/aws-autoscaling-describe-launch-configurations @@ -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 diff --git a/snippets/eshell-mode/aws-autoscaling-update-auto-scaling-group-min-max b/snippets/eshell-mode/aws-autoscaling-update-auto-scaling-group-min-max index 4c4c2068..d1192c62 100644 --- a/snippets/eshell-mode/aws-autoscaling-update-auto-scaling-group-min-max +++ b/snippets/eshell-mode/aws-autoscaling-update-auto-scaling-group-min-max @@ -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 diff --git a/snippets/eshell-mode/aws-ec2-describe-instance-attribute b/snippets/eshell-mode/aws-ec2-describe-instance-attribute index f09e22d5..abd99d51 100644 --- a/snippets/eshell-mode/aws-ec2-describe-instance-attribute +++ b/snippets/eshell-mode/aws-ec2-describe-instance-attribute @@ -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 diff --git a/snippets/eshell-mode/aws-ec2-describe-instance-status b/snippets/eshell-mode/aws-ec2-describe-instance-status index f977daf8..50c790cd 100644 --- a/snippets/eshell-mode/aws-ec2-describe-instance-status +++ b/snippets/eshell-mode/aws-ec2-describe-instance-status @@ -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 diff --git a/snippets/eshell-mode/aws-ec2-describe-userdata b/snippets/eshell-mode/aws-ec2-describe-userdata index af3c3e6f..e419728c 100644 --- a/snippets/eshell-mode/aws-ec2-describe-userdata +++ b/snippets/eshell-mode/aws-ec2-describe-userdata @@ -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 diff --git a/snippets/eshell-mode/aws-ec2-get-console-output b/snippets/eshell-mode/aws-ec2-get-console-output index e823d6af..0b873eb9 100644 --- a/snippets/eshell-mode/aws-ec2-get-console-output +++ b/snippets/eshell-mode/aws-ec2-get-console-output @@ -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)`} ># $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)`} ># $0 \ No newline at end of file diff --git a/snippets/eshell-mode/aws-ec2-get-dns-names b/snippets/eshell-mode/aws-ec2-get-dns-names index 23d594e4..0d3e06a0 100644 --- a/snippets/eshell-mode/aws-ec2-get-dns-names +++ b/snippets/eshell-mode/aws-ec2-get-dns-names @@ -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 diff --git a/snippets/eshell-mode/aws-ec2-get-instance-details b/snippets/eshell-mode/aws-ec2-get-instance-details index 644ed68a..0cbc165c 100644 --- a/snippets/eshell-mode/aws-ec2-get-instance-details +++ b/snippets/eshell-mode/aws-ec2-get-instance-details @@ -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 diff --git a/snippets/eshell-mode/aws-ec2-get-instance-volumes b/snippets/eshell-mode/aws-ec2-get-instance-volumes index 466025ce..1f2d0c38 100644 --- a/snippets/eshell-mode/aws-ec2-get-instance-volumes +++ b/snippets/eshell-mode/aws-ec2-get-instance-volumes @@ -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 diff --git a/snippets/eshell-mode/aws-ec2-get-instances b/snippets/eshell-mode/aws-ec2-get-instances index d0b133f6..16511aee 100644 --- a/snippets/eshell-mode/aws-ec2-get-instances +++ b/snippets/eshell-mode/aws-ec2-get-instances @@ -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 diff --git a/snippets/eshell-mode/aws-ec2-get-securitygroup-details b/snippets/eshell-mode/aws-ec2-get-securitygroup-details index 9792a12c..3351db6a 100644 --- a/snippets/eshell-mode/aws-ec2-get-securitygroup-details +++ b/snippets/eshell-mode/aws-ec2-get-securitygroup-details @@ -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 diff --git a/snippets/eshell-mode/aws-ec2-get-securitygroup-references b/snippets/eshell-mode/aws-ec2-get-securitygroup-references index a5026141..ae88534c 100644 --- a/snippets/eshell-mode/aws-ec2-get-securitygroup-references +++ b/snippets/eshell-mode/aws-ec2-get-securitygroup-references @@ -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 diff --git a/snippets/eshell-mode/aws-ec2-get-securitygroups b/snippets/eshell-mode/aws-ec2-get-securitygroups index d21779b0..9bc5dc2a 100644 --- a/snippets/eshell-mode/aws-ec2-get-securitygroups +++ b/snippets/eshell-mode/aws-ec2-get-securitygroups @@ -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 diff --git a/snippets/eshell-mode/aws-ec2-get-snapshot-details b/snippets/eshell-mode/aws-ec2-get-snapshot-details index ec293a9a..29292122 100644 --- a/snippets/eshell-mode/aws-ec2-get-snapshot-details +++ b/snippets/eshell-mode/aws-ec2-get-snapshot-details @@ -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 diff --git a/snippets/eshell-mode/aws-ec2-get-snapshots b/snippets/eshell-mode/aws-ec2-get-snapshots index d955ec6a..91cbdaf0 100644 --- a/snippets/eshell-mode/aws-ec2-get-snapshots +++ b/snippets/eshell-mode/aws-ec2-get-snapshots @@ -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 diff --git a/snippets/eshell-mode/aws-ec2-get-volumes b/snippets/eshell-mode/aws-ec2-get-volumes index c3d86a46..4b3661d0 100644 --- a/snippets/eshell-mode/aws-ec2-get-volumes +++ b/snippets/eshell-mode/aws-ec2-get-volumes @@ -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 diff --git a/snippets/eshell-mode/aws-ec2-instance-running b/snippets/eshell-mode/aws-ec2-instance-running index 2147130c..f4e63d20 100644 --- a/snippets/eshell-mode/aws-ec2-instance-running +++ b/snippets/eshell-mode/aws-ec2-instance-running @@ -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 diff --git a/snippets/eshell-mode/aws-ec2-start-stop-instance b/snippets/eshell-mode/aws-ec2-start-stop-instance index c04f2765..1828b431 100644 --- a/snippets/eshell-mode/aws-ec2-start-stop-instance +++ b/snippets/eshell-mode/aws-ec2-start-stop-instance @@ -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 diff --git a/snippets/eshell-mode/aws-ec2-volume-details b/snippets/eshell-mode/aws-ec2-volume-details index 621b7294..2ba1eaae 100644 --- a/snippets/eshell-mode/aws-ec2-volume-details +++ b/snippets/eshell-mode/aws-ec2-volume-details @@ -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 diff --git a/snippets/eshell-mode/aws-elb-describe-instance-health b/snippets/eshell-mode/aws-elb-describe-instance-health index 3bc7f826..2feb0f15 100644 --- a/snippets/eshell-mode/aws-elb-describe-instance-health +++ b/snippets/eshell-mode/aws-elb-describe-instance-health @@ -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 diff --git a/snippets/eshell-mode/aws-elb-describe-load-balancer b/snippets/eshell-mode/aws-elb-describe-load-balancer index 65a65bdd..fdba3b43 100644 --- a/snippets/eshell-mode/aws-elb-describe-load-balancer +++ b/snippets/eshell-mode/aws-elb-describe-load-balancer @@ -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 diff --git a/snippets/eshell-mode/aws-elb-describe-load-balancer-attributes b/snippets/eshell-mode/aws-elb-describe-load-balancer-attributes index 6a5ce089..61123b9e 100644 --- a/snippets/eshell-mode/aws-elb-describe-load-balancer-attributes +++ b/snippets/eshell-mode/aws-elb-describe-load-balancer-attributes @@ -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 diff --git a/snippets/eshell-mode/aws-elb-get-list b/snippets/eshell-mode/aws-elb-get-list index a57f4931..0ffec5d5 100644 --- a/snippets/eshell-mode/aws-elb-get-list +++ b/snippets/eshell-mode/aws-elb-get-list @@ -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 diff --git a/snippets/eshell-mode/aws-elb-search b/snippets/eshell-mode/aws-elb-search index 080e8ea8..a2b6f210 100644 --- a/snippets/eshell-mode/aws-elb-search +++ b/snippets/eshell-mode/aws-elb-search @@ -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 diff --git a/snippets/eshell-mode/aws-emr-describe-cluster b/snippets/eshell-mode/aws-emr-describe-cluster index 8a971c53..1ccd61a0 100644 --- a/snippets/eshell-mode/aws-emr-describe-cluster +++ b/snippets/eshell-mode/aws-emr-describe-cluster @@ -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 diff --git a/snippets/eshell-mode/aws-emr-list-clusters b/snippets/eshell-mode/aws-emr-list-clusters index 67c332df..fae2fbe9 100644 --- a/snippets/eshell-mode/aws-emr-list-clusters +++ b/snippets/eshell-mode/aws-emr-list-clusters @@ -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 diff --git a/snippets/eshell-mode/aws-rds-describe-db-instance-details b/snippets/eshell-mode/aws-rds-describe-db-instance-details index f77553c9..fd6979eb 100644 --- a/snippets/eshell-mode/aws-rds-describe-db-instance-details +++ b/snippets/eshell-mode/aws-rds-describe-db-instance-details @@ -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 diff --git a/snippets/eshell-mode/aws-rds-describe-db-instances b/snippets/eshell-mode/aws-rds-describe-db-instances index 314a33a8..3d76795c 100644 --- a/snippets/eshell-mode/aws-rds-describe-db-instances +++ b/snippets/eshell-mode/aws-rds-describe-db-instances @@ -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 diff --git a/snippets/eshell-mode/aws-rds-describe-db-parameter-groups b/snippets/eshell-mode/aws-rds-describe-db-parameter-groups index 003b7e2c..28d3a3bf 100644 --- a/snippets/eshell-mode/aws-rds-describe-db-parameter-groups +++ b/snippets/eshell-mode/aws-rds-describe-db-parameter-groups @@ -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 diff --git a/snippets/eshell-mode/aws-rds-describe-parameters b/snippets/eshell-mode/aws-rds-describe-parameters index 9264b734..b63532d3 100644 --- a/snippets/eshell-mode/aws-rds-describe-parameters +++ b/snippets/eshell-mode/aws-rds-describe-parameters @@ -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 diff --git a/snippets/eshell-mode/aws-route53-list-hosted-zones b/snippets/eshell-mode/aws-route53-list-hosted-zones index 68c60620..9ed43fdb 100644 --- a/snippets/eshell-mode/aws-route53-list-hosted-zones +++ b/snippets/eshell-mode/aws-route53-list-hosted-zones @@ -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 diff --git a/snippets/eshell-mode/aws-route53-list-resource-record-sets b/snippets/eshell-mode/aws-route53-list-resource-record-sets index 30585fb6..7654c239 100644 --- a/snippets/eshell-mode/aws-route53-list-resource-record-sets +++ b/snippets/eshell-mode/aws-route53-list-resource-record-sets @@ -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