aboutsummaryrefslogtreecommitdiff
path: root/templates/.jq/aws.jq
blob: 2a3cd5408bae7b8dc91cd33dd7eeb3abf4e1ff5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
def gettag(name): .Tags[] | select(.Key == name).Value;

def getInstanceMetadata: .Reservations[].Instances[] |
	[
		.PrivateIpAddress,
		.PublicIpAddress // "--",
		gettag("Name") // "--",
		.InstanceId,
		.InstanceType
	] |
	join("\t");