env0 / terraform-provider-env0

Terraform Provider for env0

Home Page:https://env0.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support Enable Remote Apply flag on environment settings

tomer-landesman opened this issue · comments

As part of remote apply feature, we let users to turn remote apply on or off for a remote backend environment, given few pre-conditions:

  1. they have the EDIT_ALLOW_REMOTE_APPLY permission
  2. remote backend is on for that environment
  3. auto approval is on for that environment

In case one of those requirements are not met - turning on Remote Apply is not possible.

Relevant feature in the UI:
image

DoD

  • environment resource has a new field, isRemoteApplyEnabled. its a boolean that defaults to false.
  • update environment endpoint modified to support that field (only for existing resource)
  • make sure that it is not enabled to set it as true if said pre conditions are not met