From: Andreas Gerler Date: Mon, 14 Mar 2016 16:52:01 +0000 (+0100) Subject: snippets for aws cli security-groups X-Git-Url: http://git.bundesbrandschatzamt.de/?a=commitdiff_plain;h=e017a018c90b59d4d54a66a41845a3a5a8e9fad1;p=emacsconfig.git snippets for aws cli security-groups - 2 new snippets to query aws cli security groups and details. --- 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