0.12.24
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
}
newrelic_alert_policy_channel.pagerduty[0]: Creating...
newrelic_alert_policy_channel.pagerduty[0]: Creation complete after 3s [id=
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
Please list the steps required to reproduce the issue, for example:
terraform plan same config with 1.17workaround is to pin the version of the terraform provider for new relic to 1.16.0
done that
Duplicate of #544
Most helpful comment
workaround is to pin the version of the terraform provider for new relic to 1.16.0