We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3.58.0
1.11.2
terraform { required_version = ">= 1.2.7" required_providers { datadog = { source = "DataDog/datadog" version = "3.48.1" } } } provider "datadog" { api_key = API_KEY app_key = APP_KEY }
$ terraformer import datadog --resources=dashboard --filter=dashboard=DASHBOARD_ID --api-key API_KEY --app-key APP_KEY --api-url API_URL 2025/03/20 13:24:42 datadog importing... dashboard 2025/03/20 13:24:42 datadog done importing dashboard 2025/03/20 13:24:42 Number of resources for service dashboard: 1 2025/03/20 13:24:42 Refreshing state... datadog_dashboard.tfer--dashboard_jtf-p4m-jn8 2025-03-20T13:24:43.469-0700 [ERROR] plugin.terraform-provider-datadog_v3.48.1: Response contains error diagnostic: tf_resource_type=datadog_dashboard diagnostic_summary="object contains unparsed element: map[data_source:apm_metrics group_by:[resource_name] name:query1 query_filter:env:$env.value service:communication-service stat:latency_avg]" tf_proto_version=5.3 tf_provider_addr=registry.terraform.io/DataDog/datadog tf_req_id=8721e734-b460-93d5-6318-384970160e05 tf_rpc=ReadResource @caller=github.com/hashicorp/[email protected]/tfprotov5/internal/diag/diagnostics.go:58 @module=sdk.proto diagnostic_detail="" diagnostic_severity=ERROR timestamp=2025-03-20T13:24:43.469-0700 2025/03/20 13:24:43 object contains unparsed element: map[data_source:apm_metrics group_by:[resource_name] name:query1 query_filter:env:$env.value service:communication-service stat:latency_avg] 2025/03/20 13:24:43 WARN: Fail read resource from provider, wait 300ms before retry 2025-03-20T13:24:44.642-0700 [ERROR] plugin.terraform-provider-datadog_v3.48.1: Response contains error diagnostic: tf_rpc=ReadResource @caller=github.com/hashicorp/[email protected]/tfprotov5/internal/diag/diagnostics.go:58 @module=sdk.proto tf_proto_version=5.3 tf_resource_type=datadog_dashboard diagnostic_severity=ERROR diagnostic_summary="object contains unparsed element: map[data_source:apm_metrics group_by:[resource_name] name:query1 query_filter:env:$env.value service:communication-service stat:latency_avg]" tf_provider_addr=registry.terraform.io/DataDog/datadog tf_req_id=194a9361-5558-8ab3-06aa-75d1eccb843f diagnostic_detail="" timestamp=2025-03-20T13:24:44.642-0700 2025/03/20 13:24:44 object contains unparsed element: map[data_source:apm_metrics group_by:[resource_name] name:query1 query_filter:env:$env.value service:communication-service stat:latency_avg] 2025/03/20 13:24:44 WARN: Fail read resource from provider, wait 300ms before retry 2025-03-20T13:24:45.761-0700 [ERROR] plugin.terraform-provider-datadog_v3.48.1: Response contains error diagnostic: diagnostic_summary="object contains unparsed element: map[data_source:apm_metrics group_by:[resource_name] name:query1 query_filter:env:$env.value service:communication-service stat:latency_avg]" tf_proto_version=5.3 tf_req_id=2aa24407-26b9-167c-c892-292579b2400d tf_rpc=ReadResource tf_resource_type=datadog_dashboard @caller=github.com/hashicorp/[email protected]/tfprotov5/internal/diag/diagnostics.go:58 @module=sdk.proto diagnostic_detail="" diagnostic_severity=ERROR tf_provider_addr=registry.terraform.io/DataDog/datadog timestamp=2025-03-20T13:24:45.760-0700 2025/03/20 13:24:46 object contains unparsed element: map[data_source:apm_metrics group_by:[resource_name] name:query1 query_filter:env:$env.value service:communication-service stat:latency_avg] 2025/03/20 13:24:46 WARN: Fail read resource from provider, wait 300ms before retry 2025-03-20T13:24:46.861-0700 [ERROR] plugin.terraform-provider-datadog_v3.48.1: Response contains error diagnostic: @caller=github.com/hashicorp/[email protected]/tfprotov5/internal/diag/diagnostics.go:58 diagnostic_detail="" tf_req_id=085bcebc-01ef-a734-963d-7d276a24e9ce tf_resource_type=datadog_dashboard tf_rpc=ReadResource @module=sdk.proto diagnostic_severity=ERROR diagnostic_summary="object contains unparsed element: map[data_source:apm_metrics group_by:[resource_name] name:query1 query_filter:env:$env.value service:communication-service stat:latency_avg]" tf_proto_version=5.3 tf_provider_addr=registry.terraform.io/DataDog/datadog timestamp=2025-03-20T13:24:46.861-0700 2025/03/20 13:24:47 object contains unparsed element: map[data_source:apm_metrics group_by:[resource_name] name:query1 query_filter:env:$env.value service:communication-service stat:latency_avg] 2025/03/20 13:24:47 WARN: Fail read resource from provider, wait 300ms before retry 2025-03-20T13:24:47.992-0700 [ERROR] plugin.terraform-provider-datadog_v3.48.1: Response contains error diagnostic: @module=sdk.proto diagnostic_severity=ERROR tf_proto_version=5.3 tf_provider_addr=registry.terraform.io/DataDog/datadog tf_resource_type=datadog_dashboard @caller=github.com/hashicorp/[email protected]/tfprotov5/internal/diag/diagnostics.go:58 tf_rpc=ReadResource diagnostic_summary="object contains unparsed element: map[data_source:apm_metrics group_by:[resource_name] name:query1 query_filter:env:$env.value service:communication-service stat:latency_avg]" tf_req_id=60743f80-2771-efb7-d459-9ebbdb5c6452 diagnostic_detail="" timestamp=2025-03-20T13:24:47.992-0700 2025/03/20 13:24:48 object contains unparsed element: map[data_source:apm_metrics group_by:[resource_name] name:query1 query_filter:env:$env.value service:communication-service stat:latency_avg] 2025/03/20 13:24:48 WARN: Fail read resource from provider, wait 300ms before retry 2025/03/20 13:24:48 Fail read resource from provider, trying import command 2025/03/20 13:24:49 Filtered number of resources for service dashboard: 1 2025/03/20 13:24:49 datadog Connecting.... 2025/03/20 13:24:49 datadog save dashboard 2025/03/20 13:24:49 datadog save tfstate for dashboard
I should be able to import the dashboard to a terraform file without issue
The errors above are printed, and the output is an empty template:
resource "datadog_dashboard" "tfer--dashboard_jtf-p4m-jn8" {}
This doesn't happen with every dashboard. It seems to only happen when specific widgets that use APM Metrics are present.
I've seen several other bugs with similar errors that were fixed by using version 3.48.1. I still get the same error with that version.
Similar to #2677 (which was closed without explanation) and #2669 (the fix for which isn't working for me)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Datadog Terraform Provider Version
3.58.0
Terraform Version
1.11.2
What resources or data sources are affected?
Terraform Configuration Files
Relevant debug or panic output
Expected Behavior
I should be able to import the dashboard to a terraform file without issue
Actual Behavior
The errors above are printed, and the output is an empty template:
This doesn't happen with every dashboard. It seems to only happen when specific widgets that use APM Metrics are present.
Steps to Reproduce
Important Factoids
I've seen several other bugs with similar errors that were fixed by using version 3.48.1. I still get the same error with that version.
References
Similar to #2677 (which was closed without explanation) and #2669 (the fix for which isn't working for me)
The text was updated successfully, but these errors were encountered: