newrelic_notification_destination
Data Source: sub-string search issue
#2681
Labels
newrelic_notification_destination
Data Source: sub-string search issue
#2681
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
provider
configuration (sensitive details redacted) -3.37.1
newrelic_notification_destination
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.Actual Behavior
What actually happened?
Newrelic doesn't search for exact string and does a substring search. if there are 2 destination in Newrelic namely
newrelic-prod-alerts
andterraform-newrelic-prod-alerts
and if you intend to search ONLYterraform-newrelic-prod-alerts
it won't provide the destination id of the sourced but the other one, since it tends to perform a substring search.Expected Behavior
What should have happened?
Newrelic should perform an exact match and if multiple resources found return a list
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform plan
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:
The text was updated successfully, but these errors were encountered: