Terraform-provider-newrelic: Getting timeout error when performing a terraform plan/apply against newrelic_synthetics_monitor resource

Created on 16 Sep 2020  ·  7Comments  ·  Source: newrelic/terraform-provider-newrelic

Terraform Version

Terraform v0.13

NewRelic Provider Version

provider.newrelic v2.6.1

Affected Resource(s)

newrelic_synthetics_monitor

Terraform Configuration Files

resource “newrelic_synthetics_monitor” “testmonitor” {
name = “test”
type = “SIMPLE”
frequency = 5
status = “ENABLED”
locations = [“AWS_US_EAST_1”, “AWS_US_EAST_2”]
uri = “https://example.com/
validation_string = “success”
}

Issue

I have setup newrelic synthetic monitoring using terraform (Command Line). I am getting below error intermittently.

image

I have tried to execute below command using my admin API key and working fine.

curl -v
-H ‘X-Api-Key:{Admin_User_Key}’ https://synthetics.newrelic.com/synthetics/api/v4/monitors

Thanks,
Selvan.

stale waiting-response

Most helpful comment

Never mind, i'm a dope, my DNS (Pi-Hole) was blocking api.newrelic.com/*

All 7 comments

Hi @selvan1978, that's odd for sure. I wonder if playing with the parallelism number could help with this. It defaults to 10, but I would probably try using something like -parallelism=4 to see how things go and make adjustments if needed.

Are you getting any specific error codes by any chance. Any extra helpful log output when use debug or trace level logs (sensitive data redacted)? Either way we'll pass along this information to the upstream API folks so they're aware as well. And if you're still seeing issues after trying some different parallelism values, we'll dig in a bit more.

Thanks @sanderblue. I have used -parallelism=2 and -parallelism=1 and working fine. As of now i have not noticed any time-out issue. I will keep monitor. Thanks for your help.

Seeing the same behavior here as well, only with certain resources:

  • newrelic_synthetics_alert_condition

    • newrelic_alert_policy (data)

but like newrelic_synthetics_monitor (rescource) works fine

Error: POST https://api.newrelic.com/v2/alerts_synthetics_conditions/policies/415579.json giving up after 4 attempt(s): Post "https://api.newrelic.com/v2/alerts_synthetics_conditions/policies/415579.json": dial tcp 0.0.0.0:443: connect: connection refused

Never mind, i'm a dope, my DNS (Pi-Hole) was blocking api.newrelic.com/*

How goes the testing @selvan1978?

This issue has been automatically marked as stale because it has not had any recent activity. It will be closed if no further activity occurs.

This issue has been automatically closed due to a lack of activity for an extended period of time.

Was this page helpful?
0 / 5 - 0 ratings