Skip to content

Latest commit

 

History

History
80 lines (59 loc) · 4.45 KB

organization_group_project.md

File metadata and controls

80 lines (59 loc) · 4.45 KB
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.

aiven_organization_group_project (Resource)

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.

Example Usage

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"
}

Schema

Required

  • 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 are admin, 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 and service:users:write.

Optional

Read-Only

  • id (String) A compound identifier of the resource in the format project/group_id.

Nested Schema for timeouts

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

Import is supported using the following syntax:

terraform import aiven_organization_group_project.example PROJECT/USER_GROUP_ID