Skip to content

A method for provisioing JSON template dashboards in terraform

Notifications You must be signed in to change notification settings

jsbnr/nr-terraform-graphql-json-dashboards

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

New Relic Terraform JSON Dashboards

This example project demontrates how you can use a Terraform GraphQL provider to provision New Relic Dashboards from JSON templates.

Note: this solution is now deprecated in favour of the new built in newrelic_dashboard_json resource. Example here. However the method of using a grpahQL provider as a way to communicate with the New Relic API for unsupported features is still valid ;)

Installation

Make sure terraform is installed. I recommend tfenv for managing your terraform binaries.

Run terraform how you usually do, or use the helper script to run terraform with the correct vars: Update the runtf.sh.sample file with your credentials and account details and rename it runtf.sh.

Important do not commit this new file to git! (It should be ignored in .gitignore already)

Initialisation

Use the runtf.sh helper script where ever you would normally run terraform. It simply wraps the terraform with some environment variables that make it easier to switch between projects.

First initialise terraform:

./runtf.sh init

Now apply the changes:

./runtf.sh apply

State storage

This demo does not include remote state storage. State will be stored locally.


Theres also this solution

About

A method for provisioing JSON template dashboards in terraform

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published