You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the solution you'd like env0_api_key should accept the same parameters as API and could look like this:
resource"env0_api_key""this" {
name="name"organization_role=""# Admin, User or any custom roleproject_permissions {
project_role="Viewer"# Can be Viewer, Planner, Deployer, Adminproject_id=data.env0_project.project1.id
}
project_permissions {
project_role="Viewer"project_id=data.env0_project..project2.id
}
}
Is your feature request related to a problem? Please describe.
env0_api_key resource allows defining only
Admin
orUser
roles under [organization_role] ((https://registry.terraform.io/providers/env0/env0/latest/docs/resources/api_key#organization_role-2), implementation. The API also supports custom roles and assignment of the token to the projects withpermissions
parameter.We would like to request support of using env0_custom_role under organization_role and project permissions in the new block.
Describe the solution you'd like
env0_api_key should accept the same parameters as API and could look like this:
We want to use it in the following way:
Important, when
organization_role
is not Admin or User, at least one project_permissions block is required.Describe alternatives you've considered
Additional context
The text was updated successfully, but these errors were encountered: