]> git.bundesbrandschatzamt.de Git - emacsconfig.git/commitdiff
another bunch of aws snippets for shell mode.
authorAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Thu, 13 Jul 2017 09:20:07 +0000 (11:20 +0200)
committerAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Thu, 13 Jul 2017 09:20:07 +0000 (11:20 +0200)
Signed-off-by: Andreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
snippets/eshell-mode/aws-cloudformation-describe-stack [new file with mode: 0644]
snippets/eshell-mode/aws-ec2-list-vpcs [new file with mode: 0644]
snippets/eshell-mode/aws-sns-ls [new file with mode: 0644]
snippets/eshell-mode/aws-support-describe [new file with mode: 0644]
snippets/eshell-mode/aws-support-details [new file with mode: 0644]

diff --git a/snippets/eshell-mode/aws-cloudformation-describe-stack b/snippets/eshell-mode/aws-cloudformation-describe-stack
new file mode 100644 (file)
index 0000000..ea46460
--- /dev/null
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: aws-cloudformation-describe-stack
+# key: cloud-desc
+# --
+aws --profile=${1:$$(yas-choose-value bba-aws-profiles)} ${2:--region=${3:$$(yas-choose-value bba-aws-regions)}} cloudformation describe-stacks --stack-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-ec2-list-vpcs b/snippets/eshell-mode/aws-ec2-list-vpcs
new file mode 100644 (file)
index 0000000..e115517
--- /dev/null
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: aws-ec2-list-vpcs
+# key: vpc-ls
+# --
+aws --profile=${1:$$(yas-choose-value bba-aws-profiles)} ${2:--region=${3:$$(yas-choose-value bba-aws-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
diff --git a/snippets/eshell-mode/aws-sns-ls b/snippets/eshell-mode/aws-sns-ls
new file mode 100644 (file)
index 0000000..13d06f3
--- /dev/null
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: aws-sns-ls
+# key: sns-ls
+# --
+aws --profile=${1:$$(yas-choose-value bba-aws-profiles)} ${2:--region=${3:$$(yas-choose-value bba-aws-regions)}} sns list-topics --output ${5:$$(yas-choose-value '("text" "table" "json"))} $0
\ No newline at end of file
diff --git a/snippets/eshell-mode/aws-support-describe b/snippets/eshell-mode/aws-support-describe
new file mode 100644 (file)
index 0000000..f8dd988
--- /dev/null
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: aws-support-describe
+# key: support-desc
+# --
+aws --profile=${1:$$(yas-choose-value bba-aws-profiles)} ${2:--region=${3:$$(yas-choose-value bba-aws-regions)}} support describe-communications --case-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-support-details b/snippets/eshell-mode/aws-support-details
new file mode 100644 (file)
index 0000000..40e731d
--- /dev/null
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: aws-support-ls
+# key: support-ls
+# --
+aws --profile=${1:$$(yas-choose-value bba-aws-profiles)} ${2:--region=${3:$$(yas-choose-value bba-aws-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