You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since covering all of these complex features scenarios both in the newrelic-cli project and the NewRelic Terraform provider is a lot of work, it would be nice if instead there was an alternative command (or flag) that allowed users to export dashboards to the raw dashboard resource in Terraform - newrelic_one_dashboard_raw.
Other than implementing our own Terraform resource generator (similar to the one provided by newrelic-cli), there's no alternative.
Note that, for now, we've managed to workaround this internally by patching the utils terraform dashobard command to support a --raw flag but the current implementation isn't very polished 😅
Additional context
Add any other context here.
The text was updated successfully, but these errors were encountered:
kidk
added
enhancement
New feature or request
and removed
stale
Issue or PR has been inactive for a period of time. This label is configured in stale-bot.
labels
Apr 1, 2022
Feature Description
Currently, the
newrelic utils terraform dashboard
command allows users to export NewRelic dashboards to the Terraform resource,newrelic_one_dashboard
(https://registry.terraform.io/providers/newrelic/newrelic/latest/docs/resources/one_dashboard)However, this command doesn't work for dashboards that use more complex features such as:
dataFormatters
field)The reason this doesn't work is because the unmarshalling schema for the dashboard's "raw configuration" data is either
dataFormatters
is not a list of strings)(for reference:
newrelic-cli/internal/utils/terraform/dashboard.go
Lines 30 to 38 in e655dbc
Since covering all of these complex features scenarios both in the newrelic-cli project and the NewRelic Terraform provider is a lot of work, it would be nice if instead there was an alternative command (or flag) that allowed users to export dashboards to the raw dashboard resource in Terraform -
newrelic_one_dashboard_raw
.Describe Alternatives
Other than implementing our own Terraform resource generator (similar to the one provided by newrelic-cli), there's no alternative.
Note that, for now, we've managed to workaround this internally by patching the
utils terraform dashobard
command to support a--raw
flag but the current implementation isn't very polished 😅Additional context
Add any other context here.
The text was updated successfully, but these errors were encountered: