Files
steampipe/tests/manual_testing/node_reuse/inputs/dashboard.sp
kaidaguerre fa18c8f0e2 Add support for node reuse. Update graph, flow and hierarchy to declare nodes and edges inline, rather than as a list of references. Closes #2871
Only top level resources can have with and param blocks. Closes #2872
Refactor resource and dashboard run hierarchies to use base impl structs. Closes #2873
2022-12-14 17:18:57 +00:00

34 lines
525 B
HCL

dashboard "inputs" {
title = "Inputs"
input "i1" {
sql = <<-EOQ
select arn as label, arn as value from aws_account
EOQ
}
input "i2" {
sql = <<-EOQ
select arn as label, arn as value from aws_account
EOQ
}
table {
query = query.q1
args = {
arn = self.input.i1.value
}
}
table {
query = query.q1
args = {
arn = self.input.i2.value
}
}
}
query "q1"{
sql = "select arn from aws_account where arn = $1"
param "arn" { }
}