-
Notifications
You must be signed in to change notification settings - Fork 245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resource newrelic_cloud_gcp_integrations
: Now Requires Optional Properties to be Set to Avoid Drift
#2767
Comments
Hi @a88zach, I just tried reproducing this, and this seems to be the case with earlier versions of the provider too, such as Can you please test this on 3.51.0 and previous versions and let us know if you're seeing the same behaviour too? This would help conclude that this is not a breaking change caused in 3.52.0 (while that is not possible, considering no changes were made to the |
newrelic_cloud_gcp_integrations
: Now Requires Optional Properties to be Set to Avoid Drift
@pranav-new-relic, my hunch here is that something may have changed in the nerdgraph, but I cannot find that code to verify. I now get the same result using both
However, with this configuration, a new plan is created each time that tries to remove the integrations default arguments. If you set up a resource like above, and run an apply multiple times without changing the resource, you should see the issue. According to the docs for this resource the integration arguments are all optional with defaults |
@a88zach I kinda agree with you - after having gone through the code again, I seem to realise this is probably not how the resource behaved so far; why I still am not (and was previously not) 100% sure is because the API did exhibit such flakey behaviour occasionally in the past, I'm wondering if that is a similar scenario. I'll try checking with the API folks here at New Relic to see if they've changed something that's causing this behavior. |
Terraform Version
Terraform v1.9.8 on darwin_arm64
Affected Resource(s)
Please list the resources as a list, for example:
newrelic_cloud_gcp_integrations
If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.
Terraform Configuration
Actual Behavior
With the above configuration, the integration blocks are removed from the integration
Expected Behavior
The integration blocks should use the default values for
fetch_tags
andmetrics_polling_interval
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
Important Factoids
This happens when moving from
3.51.0
to3.52.0
This is fixed by adding the defaults to the integration blocks
The text was updated successfully, but these errors were encountered: