Skip to content
New issue

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

datadog_dashboard_list->dash_item->type is ignored when referencing datadog_dashboard_json resources #1979

Open
drAlberT opened this issue Jun 23, 2023 · 0 comments
Labels

Comments

@drAlberT
Copy link

Terraform Version

1.2.0

Affected Resource(s)

Please list the resources as a list, for example:

  • datadog_dashboard_list
  • datadog_dashboard_json

Terraform Configuration Files

resource "datadog_dashboard_list" "cdcst" {
  name = "Test DB list"

  dash_item {
    type    = "custom_timeboard"
    dash_id = datadog_dashboard_json.apigee.id
  }
  dash_item {
    type    = "custom_timeboard"
    dash_id = datadog_dashboard_json.ci-pipelines.id
  }
}

resource "datadog_dashboard_json" "apigee" { # this is a screenboard in fact
  dashboard = file("${path.module}/dashboards.d/apigee.json")
}

resource "datadog_dashboard_json" "ci-pipelines" {
  dashboard = file("${path.module}/dashboards.d/ci-pipelines.json")
}

Expected Behavior

type parameter seems to be ignored (and this is reasonable as the DB code is taken from a JSON file generated by DD export)

I would expect the type parameter being optional, only required when really needed.

Actual Behavior

The dashboard list shows the real type of the dashboard (the one defined in the JSON), ignoring the value given in the typeparameter.

Steps to Reproduce

  1. terraform apply
@drAlberT drAlberT changed the title datadog_dashboard_list->dash_item->type seems to be ignore when referencing datadog_dashboard_json resources datadog_dashboard_list->dash_item->type is ignored when referencing datadog_dashboard_json resources Jun 23, 2023
@ecdatadog ecdatadog added the bug label Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants