]> git.bundesbrandschatzamt.de Git - emacsconfig.git/commitdiff
snippet aws-ec2-get-instances
authorAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Fri, 8 Jan 2016 14:56:50 +0000 (15:56 +0100)
committerAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Fri, 8 Jan 2016 14:56:50 +0000 (15:56 +0100)
- added "--region" for use in loops.

snippets/eshell-mode/aws-ec2-get-instances

index 8bf8c48e3133503d429668564f32c9c146dfca3d..631928a6eb9b116ec4a369383fb2cfd33bd94a30 100644 (file)
@@ -2,4 +2,4 @@
 # name: aws-ec2-get-instances
 # key: aws-ec2-get-instances
 # --
-aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ec2 describe-instances --query 'Reservations[].Instances[].[join(\`,\`,Tags[?Key==\`Name\`].Value),join(\`,\`,Tags[?Key==\`Schedule\`].Value),InstanceId, State.Name, PublicDnsName, InstanceType,Placement.AvailabilityZone]' --output ${2:$$(yas-choose-value '("text" "table" "json"))} $0
\ No newline at end of file
+aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=\$\{REGION\}} ec2 describe-instances --query 'Reservations[].Instances[].[join(\`,\`,Tags[?Key==\`Name\`].Value),join(\`,\`,Tags[?Key==\`Schedule\`].Value),InstanceId, State.Name, PublicDnsName, InstanceType,Placement.AvailabilityZone]' --output ${3:$$(yas-choose-value '("text" "table" "json"))} $0
\ No newline at end of file