back
terraform {
required_providers {
datadog = ">= 2.24.0"
}
}
top
module "datadog_dashboard" {
source = "./modules/datadog/d/datadog_dashboard"
# name - (required) is a type of string
name = null
}
top
variable "name" {
description = "(required) - The dashboard name to search for. Must only match one dashboard."
type = string
}
top
data "datadog_dashboard" "this" {
# name - (required) is a type of string
name = var.name
}
top
output "id" {
description = "returns a string"
value = data.datadog_dashboard.this.id
}
output "title" {
description = "returns a string"
value = data.datadog_dashboard.this.title
}
output "url" {
description = "returns a string"
value = data.datadog_dashboard.this.url
}
output "this" {
value = datadog_dashboard.this
}
top