From e017a018c90b59d4d54a66a41845a3a5a8e9fad1 Mon Sep 17 00:00:00 2001 From: Andreas Gerler Date: Mon, 14 Mar 2016 17:52:01 +0100 Subject: [PATCH] snippets for aws cli security-groups - 2 new snippets to query aws cli security groups and details. --- snippets/eshell-mode/aws-ec2-get-securitygroup-details | 5 +++++ snippets/eshell-mode/aws-ec2-get-securitygroups | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 snippets/eshell-mode/aws-ec2-get-securitygroup-details create mode 100644 snippets/eshell-mode/aws-ec2-get-securitygroups diff --git a/snippets/eshell-mode/aws-ec2-get-securitygroup-details b/snippets/eshell-mode/aws-ec2-get-securitygroup-details new file mode 100644 index 00000000..9792a12c --- /dev/null +++ b/snippets/eshell-mode/aws-ec2-get-securitygroup-details @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# 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 diff --git a/snippets/eshell-mode/aws-ec2-get-securitygroups b/snippets/eshell-mode/aws-ec2-get-securitygroups new file mode 100644 index 00000000..d21779b0 --- /dev/null +++ b/snippets/eshell-mode/aws-ec2-get-securitygroups @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# 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 -- 2.47.3