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

Cannot unmarshal widget of type: uptime #327

Closed
marekaf opened this issue Sep 25, 2019 · 6 comments
Closed

Cannot unmarshal widget of type: uptime #327

marekaf opened this issue Sep 25, 2019 · 6 comments

Comments

@marekaf
Copy link

marekaf commented Sep 25, 2019

Terraform Version

Terraform v0.12.9
+ provider.aws v2.28.1
+ provider.datadog v2.4.0

Affected Resource(s)

  • datadog_dashboard

Terraform Configuration Files

resource "datadog_dashboard" "coredns" {
  is_read_only = false
  layout_type  = "free"
  notify_list  = []
  title        = "CoreDNS dashboard"

  widget {

  }
}

Expected Behavior

Successful import of datadog_dashboard resource

Actual Behavior

terraform import datadog_dashboard.coredns <ID_OF_MY_DASHBOARD>
Acquiring state lock. This may take a few moments...
datadog_dashboard.coredns: Importing from ID "<ID_OF_MY_DASHBOARD>"...

Error: Cannot unmarshal widget of type: uptime


Releasing state lock. This may take a few moments...

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. terraform import datadog_dashboard.coredns <ID_OF_MY_DASHBOARD>

Important Factoids

I think the problem might be that this dashboard contains the SLO (beta) widget

@romankydybets
Copy link

Got the same problem

@zioproto
Copy link

zioproto commented Oct 9, 2019

I was able to workaround the problem in this way:

  • Delete all dashboards manually from the Datadog website
  • Delete all datadog_dashboard resources from the terraform code.
  • Run Terraform
  • Reintroduce all the datadog_dashboard resources in the terraform code
  • Run Terraform again

@romankydybets
Copy link

so in general if you have some dashboard, you need manually move it into terraform code

@TheKevJames
Copy link

I think the problem here is that the uptime widget (ie. the beta SLO thing) is not yet supported in the terraform bindings (see related issue #179).

@bkabrda
Copy link
Contributor

bkabrda commented Feb 4, 2020

Hey folks, this should be fixed in release 2.6.0 of the provider. Could you please give it a go and let me know if it works fine for you? Thanks!

@gzussa
Copy link
Contributor

gzussa commented Jun 23, 2020

This issue should be fixed by now, please try to use the slo widget

@gzussa gzussa closed this as completed Jun 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants