mirror of
https://github.com/turbot/steampipe.git
synced 2026-02-22 14:00:14 -05:00
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
34 lines
525 B
HCL
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" { }
|
|
}
|