Terraform-provider-newrelic: version 1.17 causes failure in newrelic_alert_policy_channel plan and creation

Created on 4 May 2020  路  3Comments  路  Source: newrelic/terraform-provider-newrelic

Terraform Version

0.12.24

Affected Resource(s)

  • newrelic_alert_policy_channel

Terraform Configuration Files

resource "newrelic_alert_policy" "pagerduty" {
  name = "PagerDuty Alert Policy"
}

resource "newrelic_alert_policy_channel" "pagerduty" {
  count      = var.pagerduty_enabled ? 1 : 0
  policy_id  = newrelic_alert_policy.pagerduty.id
  channel_id = newrelic_alert_channel.alert_channel[0].id
}

Expected Behavior

newrelic_alert_policy_channel.pagerduty[0]: Creating...
newrelic_alert_policy_channel.pagerduty[0]: Creation complete after 3s [id=

Actual Behavior

newrelic_alert_policy_channel.pagerduty[0]: Creating...

Error: resource not found

  on policy.tf line 89, in resource "newrelic_alert_policy_channel" "pagerduty":
  89: resource "newrelic_alert_policy_channel" "pagerduty" {

or

newrelic_alert_policy_channel.pagerduty[0]: Refreshing state... [id=

Error: resource not found

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. have a tf with newrelic_alert_policy_channel to map policy to an alert channel applied with 1.16
  2. terraform plan same config with 1.17

Most helpful comment

workaround is to pin the version of the terraform provider for new relic to 1.16.0

All 3 comments

workaround is to pin the version of the terraform provider for new relic to 1.16.0

done that

Duplicate of #544

Was this page helpful?
0 / 5 - 0 ratings