Terraform CLI
- Clone this repo and cd into the directory
- You need to set up the NR provider for your account by setting two config settings that are imported via tf variables.
touch terraform.tfvars
- in this file add two lines:
api_key = "{your user API key}" # usually starts with "NRAK"
account_id = {your account id}
- My account id is used in the dashboards json. You can just swap this out to your own.
terraform init
will set up Terraform to be ready to create a plan, which includes getting the NR Terraform provider as stated in the main.tf fileterraform plan
- check out what will be created, if it looks good proceed to...terraform apply
- you should now have a few things in your account: dashboards, synthetics, and alerts conditions and policies.