Closed emmahsax closed 2 years ago
@emmahsax Can you try to upgrade your provider to 0.6.14 and check if you still encounter the issue?
This has been reported before in https://github.com/opsgenie/terraform-provider-opsgenie/issues/288 and should have been fixed (definitely) in 0.6.14 (0.6.11, 0.6.12 & 0.6.13 have other issues, so skip them)
@multani I believe this did fix the issue! I wanted to give some adequate time to make sure, as the issue was intermittent the whole time. But I think it's fine now. I'll reopen if needed.
Terraform Version
Affected Resource(s)
Please list the resources as a list, for example:
opsgenie_team
If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.
Terraform Configuration Files
Debug Output
N/A
Panic Output
N/A
Expected Behavior
Every time we run
terraform plan
, it should want to make no changes if there are no changes to be made.Actual Behavior
When we run
terraform plan
, Terraform oftentimes (but not always) wants to make changes in place, like this:Please notice how the only changes it wants to make is rotating around the order in which the members are added to the team. This is basically just clutter, and will only increase in annoyance as we add more members to the teams.
But super importantly: it doesn't always want to make these changes... only sometimes... basically it's intermittent, and that makes it super hard to identify and reproduce
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
terraform plan
repeatedly and watch intermittently wanting to adjust things. You may need to take a break and come back to it in another few days. Again, since it's intermittent it's hard to debug and work with.Important Factoids
N/A
References
There's a lot of other similar issues on this GitHub repository around strange and inconsistent sorting behavior. I think this may just be related to those. Perhaps the API from Opsgenie is returning inconsistent ordering, and the terraform provider just needs to do some ordering by ourselves.