Skip to content

is_inactive from env0_environment does not detect changes #1052

Open
@PawelTopors

Description

@PawelTopors

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.

Image

Image

To Reproduce
Not sure about these steps, but this is what most likely happened:

  1. Create an active environment using env0_environment
  2. Make the environment inactive using is_inactive = false
  3. 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

Screenshots

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions