Affected Resource: logicmonitor_datasource
TF Provider version,
terraform {
required_providers {
logicmonitor = {
source = "logicmonitor/logicmonitor"
version = ">= 2.0.18" # Also tested with 2.0.19, same issue
}
}
}
main.tf,
resource "logicmonitor_datasource" "my_datasource" {
name = var.name
display_name = var.display_name
description = var.description
applies_to = var.applies_to
collect_interval = var.collect_interval
collect_method = var.collect_method
group = var.group
tags = var.tags
technology = var.technology
collector_attribute {
name = var.collector_attribute_name
}
data_points = var.data_points
enable_auto_discovery = var.enable_auto_discovery
enable_eri_discovery = var.enable_eri_discovery
eri_discovery_interval = var.eri_discovery_interval
}
variable.tf,
variable "collector_attribute_name" {
type = string
description = "The name of the collector attribute used by this datasource"
default = "script"
}
VS Code syntax check showing an error "Required attribute "collector_attribute" not specified: An attribute named "collector_attribute" is required here" Even though collector_attribute is already defined in the configuration. Also the same error persists even when hardcoding collector_attribute instead of using a variable. collector_attribute is documented as a required field, but the error still occurs despite being present. collect_method value tested with "script", "ping", and "snmp" → Same error. Is there an undocumented required attribute within collector_attribute? Is this a known bug in the Terraform LogicMonitor Provider? Please confirm if this is a bug or if I am missing an undocumented required field.
If it's a bug, is there an expected fix or workaround?
Affected Resource: logicmonitor_datasource
TF Provider version,
terraform {
required_providers {
logicmonitor = {
source = "logicmonitor/logicmonitor"
version = ">= 2.0.18" # Also tested with 2.0.19, same issue
}
}
}
main.tf,
resource "logicmonitor_datasource" "my_datasource" {
name = var.name
display_name = var.display_name
description = var.description
applies_to = var.applies_to
collect_interval = var.collect_interval
collect_method = var.collect_method
group = var.group
tags = var.tags
technology = var.technology
collector_attribute {
name = var.collector_attribute_name
}
data_points = var.data_points
enable_auto_discovery = var.enable_auto_discovery
enable_eri_discovery = var.enable_eri_discovery
eri_discovery_interval = var.eri_discovery_interval
}
variable.tf,
variable "collector_attribute_name" {
type = string
description = "The name of the collector attribute used by this datasource"
default = "script"
}
VS Code syntax check showing an error "Required attribute "collector_attribute" not specified: An attribute named "collector_attribute" is required here" Even though collector_attribute is already defined in the configuration. Also the same error persists even when hardcoding collector_attribute instead of using a variable. collector_attribute is documented as a required field, but the error still occurs despite being present. collect_method value tested with "script", "ping", and "snmp" → Same error. Is there an undocumented required attribute within collector_attribute? Is this a known bug in the Terraform LogicMonitor Provider? Please confirm if this is a bug or if I am missing an undocumented required field.
If it's a bug, is there an expected fix or workaround?