]> git.bundesbrandschatzamt.de Git - emacsconfig.git/commitdiff
more aws yasnippets
authorAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Fri, 19 Aug 2016 14:36:05 +0000 (16:36 +0200)
committerAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Fri, 19 Aug 2016 14:36:05 +0000 (16:36 +0200)
everybody loves yasnippets!

- aws-ec2-get-snapshots
- aws-ec2-get-volumes

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

diff --git a/snippets/eshell-mode/aws-ec2-get-snapshots b/snippets/eshell-mode/aws-ec2-get-snapshots
new file mode 100644 (file)
index 0000000..d955ec6
--- /dev/null
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# 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
diff --git a/snippets/eshell-mode/aws-ec2-get-volumes b/snippets/eshell-mode/aws-ec2-get-volumes
new file mode 100644 (file)
index 0000000..c3d86a4
--- /dev/null
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# 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