Data Source newrelic_key_transaction
: Version 3.50.0 returns key transaction from incorrect New Relic account
#2762
Labels
Terraform Version
1.5.7
Provider Version
3.50.0
Affected Resource(s)
data newrelic_key_transaction
Terraform Configuration
Actual Behavior
KeyTransaction
with the same name, sayMyTransactionName
, in 4 Newrelic Accounts (saysDev
,Demo
,Staging
, andProd
)Dev1
account, the provider will return theKeyTransanction
of the other newrelic account consistently (instead ofDev1
). It only happens to theKeyTransaction
resource. And it only happens when using terraform because I did verify with a rest tool like postman and I could get the correctKeyTransaction
item using the same API key set for terrform.And then because the
KeyTransaction
is not correct, it will fail to create any dependent resources, e.g.newrelic_alert_condition.my_alert_condition
in the example terraform configuration above.Expected Behavior
We expect the terraform provider should load
KeyTransaction
from the correct newrelic account (associated with the API key)Steps to Reproduce
We found the problem with both
terraform plan
andterraform apply
Debug Output
No thing special. It outputs the incorrect value of the
KeyTransaction
.The text was updated successfully, but these errors were encountered: