You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's a pretty complex dynamic config that contains a bit of business logic, so can't share the full details, which I know makes it difficult to reproduce.locals {
my_var=[
{
title ="title"
color ="vivid_purple"
app_name ="app"
queue ="queue"
}
]}
resource"datadog_dashboard""my_dashboard" {
title="My Dashboard"description="Created using Terraform"layout_type="ordered"reflow_type="auto"restricted_roles=["role-id"]
dynamic"widget" {
for_each=local.my_varcontent {
group_definition {
background_color=widget.value["color"]
layout_type="ordered"show_title=truetitle=widget.value["title"]
widget {
}
}
}
}
template_variable {
name="var"prefix="var"defaults=["value"]
}
}
Relevant debug or panic output
This is the standard output seen:
│ Error: object contains unparsed element: map[]
│
│ with datadog_dashboard.my_dashboard,
│ on dashboard-util.tf line 107, in resource "datadog_dashboard" "my_dashboard":
│ 107: resource "datadog_dashboard" "my_dashboard" {
no error, or at least something with a bit more detail to know what is causing the failure
Actual Behavior
terraform exists in error state with no useful information
Steps to Reproduce
The error only shows when the UI version has been changed manually and terraform needs to reset the state. If the change is initiated by a change in the terraform code, the error doesn't show up.
Important Factoids
The workaround found is to rollback to version 3.43.1 (or earlier) with terraform init -upgrade.
References
No response
The text was updated successfully, but these errors were encountered:
Datadog Terraform Provider Version
3.44.0
Terraform Version
v1.6.3
What resources or data sources are affected?
datadog_dashboard
Terraform Configuration Files
Relevant debug or panic output
This is the standard output seen:
This is what is available in the debug logs:
Expected Behavior
no error, or at least something with a bit more detail to know what is causing the failure
Actual Behavior
terraform exists in error state with no useful information
Steps to Reproduce
The error only shows when the UI version has been changed manually and terraform needs to reset the state. If the change is initiated by a change in the terraform code, the error doesn't show up.
Important Factoids
The workaround found is to rollback to version
3.43.1
(or earlier) withterraform init -upgrade
.References
No response
The text was updated successfully, but these errors were encountered: