forked from turbot/steampipe-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAwsAzureCompute.sp
93 lines (70 loc) · 1.64 KB
/
AwsAzureCompute.sp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
dashboard "AwsAndAzureCompute" {
title = "AWS + Azure Compute"
tags = {
service = "AAA"
}
container {
width = 6
title = "aws ec2 instances"
input "instance_input" {
query = aws_insights.query.ec2_instance_input
}
card "ec2_instance_status" {
width = 2
base = card.ec2_instance_status
}
table {
type = "line"
args = [ self.input.instance_input.value ]
base = table.ec2_instance_overview
}
table {
type = "line"
base = table.ec2_public_ips
}
table {
type = "line"
args = [ self.input.instance_input.value ]
base = table.ec2_security_groups
}
}
container {
width = 6
title = "azure compute vms"
input "vm_input" {
query = azure_insights.query.compute_virtual_machine_input
}
card {
width = 5
type = "info"
query = azure_insights.query.compute_virtual_machine_status
args = [self.input.vm_input.value]
}
table {
type = "line"
args = [ self.input.vm_input.value ]
query = azure_insights.query.compute_virtual_machine_overview
}
table {
title = "public ips"
type = "line"
sql = <<EOQ
select
name,
public_ips
from
azure_compute_virtual_machine
where
public_ips is not null
EOQ
}
table {
title = "Security Groups"
query = azure_insights.query.compute_virtual_machine_security_groups
args = [self.input.vm_input.value]
column "Name" {
href = "/azure_insights.dashboard.network_security_group_detail?input.nsg_id={{ .'Security Group ID' | @uri }}"
}
}
}
}