Files
terraform-provider-threshold/website/docs/r/resource_group.html.markdown
T

1.5 KiB

layout, page_title, sidebar_current, description
layout page_title sidebar_current description
boundary Boundary: group_resource docs-boundary-group-resource Group resource for the Boundary Terraform provider.

boundary_group_resource

The group resource allows you to configure a Boundary group.

Example Usage

resource "boundary_organization" "foo" {}

resource "boundary_user" "foo" {
  description = "foo user"
  scope_id    = boundary_organization.foo.id
}

resource "boundary_group" "example" {
  name        = "My group"
  description = "My first group!"
  member_ids  = [boundary_user.foo.id]
  scope_id    = boundary_organization.foo.id
}

Usage for project-specific group:

resource "boundary_organization" "foo" {}

resource "boundary_project" "foo" {
  name     = "foo_project"
  scope_id = boundary_organization.foo.id
}

resource "boundary_user" "foo" {
  description = "foo user"
  scope_id    = boundary_organization.foo.id
}

resource "boundary_group" "example" {
  name        = "My group"
  description = "My first group!"
  member_ids  = [boundary_user.foo.id]
  scope_id    = boundary_project.foo.id
}

Argument Reference

The following arguments are optional:

  • description - The group description.
  • name - The group name. Defaults to the resource name.
  • scope_id - The scope ID in which the resource is created. Defaults to the provider's default_scope if unset.
  • member_ids - Resource IDs for group members, these are most likely boundary users.