-
Notifications
You must be signed in to change notification settings - Fork 393
Import since 1.6.0 does'nt work Params.count of type string #133
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
Comments
I wrote #105 . and #117 has not solved it. After that the test was repeated.I got some conclusions
use DataDog API see https://docs.datadoghq.com/ja/api/#screenboards-put I can import any screenboards. try it. |
sorry, |
I'm having another issue similar to this casting, but with the width field:
When I curl the screen, I get
which is not an Int. Is this related, right?
|
@agoulart0 yeah, you have to pull the json from the API, edit it, PUT it, and then you can import. also of note is that this doesn't just affect import, it also affects all refreshing, so please don't use the datadog UI unless you want to risk problems :) the |
Hi all, I get the workaround for the |
@2rs2ts , how do you edit the JSON? Put quotes around the integers to turn them into strings? |
@wbuiejr it's been a while but yeah I believe that's what I did. |
Hey, I apologize for the delay here. There were some changes on the api side a little while back that should help to avoid this issue going forward where these wouldn't be returned into the Terraform state. It may require any change to be made to the dashboard via the UI to have these fields be properly updated, then any terraform import/plan/apply should properly work. Is this still an issue being faced? Additionally, the newer dashboard resource has some extra validations around them that should help avoid these types of issues in the future. |
Hey, apologies again for the delay on this one. As this issue should be resolved I'll go ahead and close this out for now. Let us know if you experience any further issues with this. |
Uh oh!
There was an error while loading. Please reload this page.
Hi since 1.6.0 release we have another cast issue on
Params.count
.I cannot confirm that is was not present on previous version, cause i had the
json: cannot unmarshal number into Go struct field Screenboard.height of type string
which is fixed by 1.6.0Do you know if there is any workaround about ?
Thanks
Terraform Version
Affected Resource(s)
datadog_screenboard
Terraform Configuration Files
Expected Behavior
Imported screenboard
Actual Behavior
json: cannot unmarshal number into Go struct field Params.count of type string
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform import datadog_screenboard.datadog_screenboard id
References
The text was updated successfully, but these errors were encountered: