Your data. Anywhere you go.

New Relic for iOS or Android


Download on the App Store    Android App on Google play


New Relic Insights App for iOS


Download on the App Store


Learn more

Close icon

New Relic - Terraform Error: the name does not match any New Relic alert channel

configuration
terraform
new-relic-logs

#1

Hi guys, I am trying to setup New Relic monitoring via terraform using the following guide: https://registry.terraform.io/modules/newrelic/apm/newrelic/0.0.

I have stored my admin api key as an environment variable.

I am receiving the following error after Terraform plan:

image

Any help is greatly appreciated.


Troubleshooting New Relic integration with Terraform
#2

Thanks for the question Dean. From looking at your example and the error message it appears that the Terraform provider is not able to find an existing New Relic Alert Channel with the name “RSO_Application_Services”. If that channel does not already exist, you’ll need to create it as a Terraform ‘resource’ instead of ‘data’. If it does exist, please make sure that the name argument is exact as it appears in the New Relic UI, and that it’s on the same account as the configured API key used when running terraform. Let us know if we can help further!


#3

Hi @Dean.mullarkey! Were you able to get this working?