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

Internal Server Error when building Synthetic Monitors in a terraform conifguration




I have been building Synthetic Monitors in a terraform configuration.

I keep getting errors like this when I do a terraform apply for new monitors (but every time I do it it’s a different channel and when I kept retrying it eventually worked but now it’s no longer working). Here is an example of the errors that are coming up:

`* 1 error(s) occurred:

  • Internal Server Error`

Would be grateful for any input.

Many thanks,


Hi @sarahmoore, could you give more details on the exact command that results in this error? Where is it being sent to? Is this the full error you are receiving back? :slight_smile:


Hi @rdouglas, thank you for responding :slight_smile: !

The commands I used are terraform plan -out=plan.out and then terraform apply plan.out. I am doing this in a terraform config from my newrelic_synthetics folder (i.e. …/infrastructure/terraform/configurations/newrelic_synthetics).

If I comment out the policy channels I have put in, then my terraform apply plan.out is successful. This is the full error I am getting when I include the policy channels in my apply.

`Error: Error applying plan:

2 error(s) occurred:

  • newrelic_alert_policy_channel.foo1: 1 error(s) occurred:

  • newrelic_alert_policy_channel.foo1: Internal Server Error

  • newrelic_alert_policy_channel.foo2: 1 error(s) occurred:

  • newrelic_alert_policy_channel.foo2: Internal Server Error

Terraform does not automatically rollback in the face of errors.
Instead, your Terraform state file has been partially updated with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure. `

My alert policy channels look like this:

resource "newrelic_alert_policy_channel" "foo1" { policy_id = "${}" channel_id = "${}" }

Please let me know if you need any further information.

Sarah :slight_smile: