page_title | subcategory | description |
---|---|---|
aiven_organization_group_project Resource - terraform-provider-aiven |
Adds and manages a group of users as members of a project.
This resource is deprecated. Use aiven_organization_permission and
migrate existing aiven_organization_group_project resources https://registry.terraform.io/providers/aiven/aiven/latest/docs/guides/update-deprecated-resources
to the new resource. Do not use the aiven_organization_group_project and aiven_organization_permission resources together. |
Adds and manages a group of users as members of a project.
This resource is deprecated. Use aiven_organization_permission
and
migrate existing aiven_organization_group_project resources
to the new resource. Do not use the aiven_organization_group_project and aiven_organization_permission resources together.
resource "aiven_project" "example_project" {
project = "example-project"
parent_id = aiven_organization.main.id
}
resource "aiven_organization_user_group" "example" {
description = "Example group of users."
organization_id = aiven_organization.main.id
name = "Example group"
}
resource "aiven_organization_user_group_member" "project_admin" {
group_id = aiven_organization_user_group.example.group_id
organization_id = aiven_organization.main.id
user_id = "u123a456b7890c"
}
resource "aiven_organization_group_project" "example" {
group_id = aiven_organization_user_group.example.group_id
project = data.aiven_project.example_project.project
role = "admin"
}
group_id
(String) The ID of the user group.project
(String) The project that the users in the group are members of.role
(String) Project-level role assigned to all users in the group. The possible values areadmin
,developer
,operator
,organization:app_users:write
,organization:audit_logs:read
,organization:billing:read
,organization:billing:write
,organization:domains:write
,organization:groups:write
,organization:idps:write
,organization:networking:read
,organization:networking:write
,organization:projects:write
,organization:users:write
,project:audit_logs:read
,project:integrations:read
,project:integrations:write
,project:networking:read
,project:networking:write
,project:permissions:read
,project:services:read
,project:services:write
,read_only
,role:organization:admin
,role:services:maintenance
,role:services:recover
,service:configuration:write
,service:data:write
,service:logs:read
,service:secrets:read
andservice:users:write
.
timeouts
(Block, Optional) (see below for nested schema)
id
(String) A compound identifier of the resource in the formatproject/group_id
.
Optional:
create
(String) A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).delete
(String) A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.read
(String) A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.update
(String) A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
Import is supported using the following syntax:
terraform import aiven_organization_group_project.example PROJECT/USER_GROUP_ID