Terraform bug: 'include_json_attachment' cannot be enabled

Summary

The newrelic_alert_channel resource’s include_json_attachment config cannot be enabled by either 1 or "1"; it’s just stuck switched off. Documentation link.

Configuration

terraform {
  required_version = "~> 0.14.0"
  required_providers {
    newrelic = {
      source = "newrelic/newrelic"
      version = "~> 2.16.0"
    }
  }
}

resource "newrelic_alert_channel" "email_me" {
  name = "Email : username@gmail.com"
  type = "email"
  config {
    recipients = "username@gmail.com"
    include_json_attachment = "1"
  }
}

Also raised on GitHub. Thanks for your time.

1 Like

@rishav.dhar There is a comment on a related post that applies to this also.

1 Like

To update, configuring include_json_attachment = true appears to work as a viable workaround.

1 Like

Thanks for the update Rishav! I’ve marked your workaround as a solution!