diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/.jq/aws.jq | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/templates/.jq/aws.jq b/templates/.jq/aws.jq new file mode 100644 index 0000000..2a3cd54 --- /dev/null +++ b/templates/.jq/aws.jq @@ -0,0 +1,12 @@ +def gettag(name): .Tags[] | select(.Key == name).Value; + +def getInstanceMetadata: .Reservations[].Instances[] | + [ + .PrivateIpAddress, + .PublicIpAddress // "--", + gettag("Name") // "--", + .InstanceId, + .InstanceType + ] | + join("\t"); + |