terraform-provider-datadog: Can not imported ScreenBoard got an error unmarshal
Hi there,
I’m happy to be able to manage the screenboard with DataDog. But I tried importing an existing board but it got an error. Am I something wrong?
Terraform Version
$ terraform -v
Terraform v0.11.8
+ provider.aws v1.40.0
+ provider.datadog v1.4.0
Affected Resource(s)
- datadog_screenboard
Terraform Configuration Files
resource "datadog_screenboard" "security_log" {
}
Of course, other resources can be managed.
Expected Behavior
imported screenboard
Actual Behavior
$ terraform import datadog_screenboard.security_log 465952
datadog_screenboard.security_log: Importing from ID "465952"...
Error: datadog_screenboard.security_log (import id: 465952): import datadog_screenboard.security_log (id: 465952): json: cannot unmarshal number into Go struct field Screenboard.height of type string
Steps to Reproduce
only use import .
Important Factoids
maybe any boards cannot import…
aws integration make some boards, can not imported.
References
https://www.terraform.io/docs/providers/datadog/r/screenboard.html
Please tell me if there is any information. Thank you.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 8
- Comments: 21 (5 by maintainers)
100% experiencing the same issue (can provide screenboard id on request).
with
TF_LOGset totraceI get the following:I also saw an issue with not being able to import a screenboard that had been touched by human hands. Regrettably, WYSIWYG is the easiest way to develop a screenboard.
When I was working with this, I noticed there was a ‘palette_flip’ flip attribute on a host map widget which was defined with a boolean value of ‘true’ in my terraform code, which functions correctly when applied to Datadog, whose value was represented in the JSON (which I could see when editing the screenboard) as the numeral ‘1’. This was causing an error in Datadog when I was trying to modify a clone of this screenboard. When I edited the JSON backend to spell out “true”, the screenboard was happy with it.
I offer this clue in hope that it might help a source maintainer identify where the problem lies.
any update on this error? I’m having the same issue and wanted to manage the boards via terraform