Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

env0_module resource does not detect changes in ENV0 UI #1004

Closed
PawelTopors opened this issue Jan 24, 2025 · 1 comment · Fixed by #1006
Closed

env0_module resource does not detect changes in ENV0 UI #1004

PawelTopors opened this issue Jan 24, 2025 · 1 comment · Fixed by #1006
Assignees
Labels
bug Something isn't working

Comments

@PawelTopors
Copy link

Describe the bug
When the ENV0 module is created with terraform (exists in the state) and later is removed from UI or with API, terraform does not detect changes.

To Reproduce

  1. Create ENV0 module with terraform and env0_module resource
  2. Remove that module using ENV0 UI
  3. Run terraform plan again, there will be no changes

Expected behavior
env0_module detects that the module was removed and will show the diff that the resource will be created again

Provider Version
1.24.2

Screenshots

Additional context
ENV0 provider uses this function to read the module from the ENV0 API. This will return the response even if the module was deleted, "isDeleted":true will be in the response JSON. IMHO that function should check if "isDeleted" is true or false in the response and return the module object when "isDeleted" is false

@PawelTopors PawelTopors added the bug Something isn't working label Jan 24, 2025
@TomerHeber TomerHeber self-assigned this Jan 24, 2025
@TomerHeber TomerHeber moved this from To do to In progress in Ongoing Issues Jan 24, 2025
@TomerHeber
Copy link
Collaborator

To be fixed in #1002

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants