env0 / terraform-provider-env0

Terraform Provider for env0

Home Page:https://env0.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add support to new ConfigurationSet functionality

GiliFaroEnv0 opened this issue · comments

We are adding a new Feature called ConfigurationSet which will provide the option to group Configuration properties with a display name and a description and assign/unassign them to the different entities as one unit.

We need to create resources to create ConfigurationSet and assign it to an entity.

resource ConfigurationSet {
create using create API

edit using edit API
delete using delete API
}
}

resource AssignConfigurationSet {
assign using assign API
}
unassign using API with similar props but DELETE (will be merged later today)
}

@GiliFaroEnv0

A couple of questions/comments:

  1. The GET response does not return the configurations? It is needed. (https://docs.env0.com/reference/configuration-find-configuration-set-by-id)
  2. To which resource is a configuration set assigned to?
  3. The update operation is delta changes? or is it an upsert?

I'm sure most of these questions can be answered by myself if the feature is available in the UI.
Is it available and ready to be used in the UI?

@GiliFaroEnv0

A couple of questions/comments:

  1. The GET response does not return the configurations? It is needed. (https://docs.env0.com/reference/configuration-find-configuration-set-by-id)
  2. To which resource is a configuration set assigned to?
  3. The update operation is delta changes? or is it an upsert?

I'm sure most of these questions can be answered by myself if the feature is available in the UI. Is it available and ready to be used in the UI?

  1. yes you need to also query this API with queryParam setId
  2. currently you can only use it with the extra resource (you will create) AssignConfigurationSet
    3.delta changes like we have in variables of the environment resource