Open garotinguyen opened 3 weeks ago
Hi @garotinguyen, are you noticing this behaviour only with v3.50.0
and not with previous versions? This would help us debug the issue better, as we've recently changed the working of the newrelic_key_transaction
data source to use NerdGraph instead of REST v2, starting v3.50.0
. Thanks!
cc @vagrawal-newrelic
hi @pranav-new-relic I can confirm version 3.48
work correctly because we reverted back to 3.48
to fix the issue. I didn't test with 3.49
so I cannot tell.
@garotinguyen we just included a probable fix to this in our latest release (v3.51.0
) as we were anyway going to release a version today :) can you please check if it works as desired now?
@pranav-new-relic thank you for the quick fix, we will give it a try next week and will let you know the result
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 theKeyTransaction
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
.