Description
Describe the bug
is_inactive from env0_environment
does not reflect actual state from ENV0 UI.
When the env0_environment
has the is_inactive
flag set to false, it will not detect drift between the terraform configuration/state and the ENV0 UI. In the ENV0 UI, the environment is active (while in Terraform configuration, is_active = false), but the provider is unable to detect this and does not display the drift in the plans; it is also unable to make the environment inactive
again.
To Reproduce
Not sure about these steps, but this is what most likely happened:
- Create an active environment using
env0_environment
- Make the environment inactive using is_inactive = false
- Activate the environment from the UI
Expected behavior
On the next terraform run, env0_environment
should detect that the environment was activated and should show the diff and try to deactivate the environment again
Provider Version
1.28.0