Resource newrelic_notification_destination
: Creation fails with type error #2746
Description
Hi there,
Thank you for opening an issue. In order to better assist you with your issue, we kindly ask to follow the template format and instructions. Please note that we try to keep the Terraform issue tracker reserved for bug reports and feature requests only. General usage questions submitted as issues will be closed and redirected to New Relic's Explorers Hub https://discuss.newrelic.com/c/build-on-new-relic/developer-toolkit.
Please include the following with your bug report
⚠️ Important: Failure to include the following, such as omitting the Terraform configuration in question, may delay resolving the issue.
- Your New Relic
provider
configuration (sensitive details redacted) - A list of affected resources and/or data sources
- The configuration of the resources and/or data sources related to the bug report (i.e. from the list mentioned above)
- Description of the current behavior (the bug)
- Description of the expected behavior
- Any related log output
Terraform Version
Run terraform -v
to show the version. If you are not running the latest version of Terraform, please upgrade because your issue may have already been fixed.
v1.9.5
Affected Resource(s)
Please list the resources as a list, for example:
newrelic_notification_destination
If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.
Terraform Configuration
Please include your
provider
configuration (sensitive details redacted) as well as the configuration of the resources and/or data sources related to the bug report.
terraform {
required_version = "~> 1.0"
required_providers {
newrelic = {
source = "newrelic/newrelic"
}
}
}
resource "newrelic_notification_destination" "foo" {
account_id = 12345678
name = "foo"
type = "WEBHOOK"
secure_url {
prefix = "https://webhook.mywebhook.com/"
secure_suffix = "service_id/123456"
}
property {
key = "source"
value = "terraform"
}
}
Actual Behavior
What actually happened?
Creation fails with:
Plan: 1 to add, 0 to change, 0 to destroy.
newrelic_notification_destination.foo: Creating...
╷
│ Error: Access restricted
│
│ with newrelic_notification_destination.foo,
│ on main.tf line 12, in resource "newrelic_notification_destination" "foo":
│ 12: resource "newrelic_notification_destination" "foo" {
│
│ NOTICE: fields are statically typed. Make sure all fields are of the correct type
╵
Error: exit status 1
Expected Behavior
What should have happened?
Creation succeeds or prints an actionable error
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
Debug Output
Please provider a link to a GitHub Gist containing the complete debug output: https://www.terraform.io/docs/internals/debugging.html. Please do NOT paste the debug output in the issue; just paste a link to the Gist.
Panic Output
If Terraform produced a panic, please provide a link to a GitHub Gist containing the output of the crash.log
.
Important Factoids
Are there anything atypical about your accounts that we should know? For example: Running in EC2 Classic? Custom version of OpenStack? Tight ACLs?
References
Are there any other GitHub issues (open or closed) or Pull Requests that should be linked here? For example: