]> git.bundesbrandschatzamt.de Git - emacsconfig.git/commitdiff
aws yasnippets
authorAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Fri, 16 Dec 2016 11:03:09 +0000 (12:03 +0100)
committerAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Fri, 16 Dec 2016 11:03:09 +0000 (12:03 +0100)
- some updates for my aws cli yasnippets.

Signed-off-by: Andreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
snippets/eshell-mode/aws-ec2-get-instance-details
snippets/eshell-mode/aws-ec2-get-instance-volumes [new file with mode: 0644]
snippets/eshell-mode/aws-ec2-get-snapshot-details
snippets/eshell-mode/aws-ec2-volume-details

index 4078f0da9a13e19423442c4e7b346ae687217791..644ed68ac19d39a9670f849c5bc9cd9e6a66605b 100644 (file)
@@ -1,5 +1,5 @@
 # -*- mode: snippet -*-
 # name: aws-ec2-get-instance-details (yank)
-# key: ec2-details
+# 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
diff --git a/snippets/eshell-mode/aws-ec2-get-instance-volumes b/snippets/eshell-mode/aws-ec2-get-instance-volumes
new file mode 100644 (file)
index 0000000..466025c
--- /dev/null
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# 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
index 27360b18fbd9e98f1e9e8ec5d860c26480167cc8..ec293a9a5a3f5182f6f7ba196814fffaeeed550b 100644 (file)
@@ -1,5 +1,5 @@
 # -*- mode: snippet -*-
 # name: aws-ec2-get-snapshot-details (yank)
-# key: snap-details
+# 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
index e86e2897627d8a4e6e73b45152446f20091b8e8b..621b72941cdbe26a8b92d57a9ba15f7841674bc0 100644 (file)
@@ -1,5 +1,5 @@
 # -*- mode: snippet -*-
 # name: aws-ec2-volume-details (yank)
-# key: ebs-details
+# 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