Open Mallear opened 2 months ago
@Mallear thank you for reporting this issue. We shall take a look soon and keep you posted.
My first thoughts suggest this could be happening because the user is first being destroyed/deleted, after which Terraform tries removing the user from the group; however, since the mutation on NerdGraph that removes users from a group validates if the ID of the user given in the input is still valid, the mutation throws an error, hence the issue. However, in the UI, the user is no longer part of the group as the user doesn't even exist anymore.
We might need to fix this by (possibly, if feasible) introducing a dependency that would ensure the user is not deleted until the user is removed from the group, or internally have the user removed from the group, if they have been deleted. The feasibility of the options above aren't clear at this point, so we'll take a look further and keep you posted.
Hi there,
Terraform Version
Affected Resource(s)
Please list the resources as a list, for example:
newrelic_group
Terraform Configuration
Actual Behavior
When removing a user from the list, the user is deleted but the group update fails with the following logs:
On New Relic, the user is removed from the group.
Expected Behavior
The group succesfully update.
Steps to Reproduce
terraform apply
local.user_name
terraform apply
Debug Output
References
N/A