Generates HCL configuration for newrelic_one_dashboard
resources from exported JSON documents.
Install from the binaries on the release page, or via the install script:
curl https://raw.githubusercontent.com/ctrombley/nr-dashboard-hcl-gen/main/scripts/install.sh | bash
Exported JSON can be fed to the tool via stdin or filename.
The -l
argument can be used to provide a resource label to apply to the generated resource.
cat dashboard.json | nr-dashboard-hcl-gen -l "my_dashboard" > main.tf
nr-dashboard-hcl-gen -l "my_dashboard" -i dashboard.json > main.tf