This repository has been archived by the owner on Jun 27, 2021. It is now read-only.
terraform plan showing strange state differences with terraform v0.15.4 #182
Labels
bug
Something isn't working
Hashicorp released a new feature in terraform v0.15.4 - Noting changes made outside of Terraform, and it introduces some strange behavior when using it with this gsuite provider.
I can reproduce the issue with a very simple terraform project, which looks like this:
The sample project just creates a group and attaches two members to it. Running
terraform apply
works fine. The problem I run into is when the apply is then immediately followed by runningterraform plan
in which state changes immediately show up.Here is the output of the subsequent plan:
What I find confusing and strange is that while I get maybe some of the reported external changes can be explained away by the new feature, in this case it seems to be done in in an inconsistent way. For example, why would the two group members be reported differently -- the first member shows and addition and then a deletion, and the second member just shows a deletion.
I would think the only thing that might reasonably change in the state is the attribute detailing the number of active members.
If I use the previous terraform version v0.15.3 for this sample project, it works the way I would expect. The project applies fine, and when I then immediately follow it with a
terraform plan
, there are no differences shown and the plan reports no changes.Can this behavior be explained? Is there something this provider implementation is doing wrong that this new terraform v0.15.4 feature is now exposing? Or is there a bug in terraform v0.15.4 maybe? Or maybe there's a bug in my sample code I'm not seeing?
Thanks in advance.
The text was updated successfully, but these errors were encountered: