2020-07-02 14:22:08 -07:00
|
|
|
---
|
2020-10-06 20:34:16 -04:00
|
|
|
page_title: "boundary_group Resource - terraform-provider-boundary"
|
|
|
|
|
subcategory: ""
|
2020-07-02 14:22:08 -07:00
|
|
|
description: |-
|
2020-10-06 20:34:16 -04:00
|
|
|
The group resource allows you to configure a Boundary group.
|
2020-07-02 14:22:08 -07:00
|
|
|
---
|
|
|
|
|
|
2020-10-06 20:34:16 -04:00
|
|
|
# Resource `boundary_group`
|
|
|
|
|
|
|
|
|
|
The group resource allows you to configure a Boundary group.
|
2020-07-02 14:22:08 -07:00
|
|
|
|
|
|
|
|
## Example Usage
|
|
|
|
|
|
2020-10-06 20:34:16 -04:00
|
|
|
```terraform
|
2020-09-17 15:34:00 -07:00
|
|
|
resource "boundary_scope" "org" {
|
2020-10-13 23:12:03 -04:00
|
|
|
name = "organization_one"
|
|
|
|
|
description = "My first scope!"
|
|
|
|
|
scope_id = "global"
|
|
|
|
|
auto_create_admin_role = true
|
|
|
|
|
auto_create_default_role = true
|
2020-09-17 15:34:00 -07:00
|
|
|
}
|
2020-08-27 16:54:03 -07:00
|
|
|
|
2020-08-17 11:50:18 -07:00
|
|
|
resource "boundary_user" "foo" {
|
|
|
|
|
description = "foo user"
|
2020-09-17 15:34:00 -07:00
|
|
|
scope_id = boundary_scope.org.id
|
2020-08-17 11:50:18 -07:00
|
|
|
}
|
|
|
|
|
|
2020-08-11 16:12:26 -07:00
|
|
|
resource "boundary_group" "example" {
|
2020-07-02 14:22:08 -07:00
|
|
|
name = "My group"
|
|
|
|
|
description = "My first group!"
|
2020-08-17 11:50:18 -07:00
|
|
|
member_ids = [boundary_user.foo.id]
|
2020-09-17 15:34:00 -07:00
|
|
|
scope_id = boundary_scope.org.id
|
2020-07-02 14:22:08 -07:00
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
2020-08-15 14:49:09 -07:00
|
|
|
Usage for project-specific group:
|
|
|
|
|
|
2020-10-06 20:34:16 -04:00
|
|
|
```terraform
|
2020-09-17 15:34:00 -07:00
|
|
|
resource "boundary_scope" "org" {
|
2020-10-13 23:12:03 -04:00
|
|
|
name = "organization_one"
|
|
|
|
|
description = "My first scope!"
|
|
|
|
|
scope_id = "global"
|
|
|
|
|
auto_create_admin_role = true
|
|
|
|
|
auto_create_default_role = true
|
2020-09-17 15:34:00 -07:00
|
|
|
}
|
2020-08-27 16:54:03 -07:00
|
|
|
|
2020-09-17 15:34:00 -07:00
|
|
|
resource "boundary_scope" "project" {
|
2021-01-14 14:07:36 -08:00
|
|
|
name = "project_one"
|
|
|
|
|
description = "My first scope!"
|
|
|
|
|
scope_id = boundary_scope.org.id
|
|
|
|
|
auto_create_admin_role = true
|
2020-08-15 14:49:09 -07:00
|
|
|
}
|
|
|
|
|
|
2020-08-17 11:50:18 -07:00
|
|
|
resource "boundary_user" "foo" {
|
|
|
|
|
description = "foo user"
|
2020-09-17 15:34:00 -07:00
|
|
|
scope_id = boundary_scope.org.id
|
2020-08-17 11:50:18 -07:00
|
|
|
}
|
|
|
|
|
|
2020-08-15 14:49:09 -07:00
|
|
|
resource "boundary_group" "example" {
|
|
|
|
|
name = "My group"
|
|
|
|
|
description = "My first group!"
|
2020-08-17 11:50:18 -07:00
|
|
|
member_ids = [boundary_user.foo.id]
|
2020-09-17 15:34:00 -07:00
|
|
|
scope_id = boundary_scope.project.id
|
2020-08-15 14:49:09 -07:00
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
2021-01-14 14:07:36 -08:00
|
|
|
<!-- schema generated by tfplugindocs -->
|
2020-10-06 20:34:16 -04:00
|
|
|
## Schema
|
|
|
|
|
|
|
|
|
|
### Required
|
|
|
|
|
|
2022-05-13 18:10:43 -07:00
|
|
|
- `scope_id` (String) The scope ID in which the resource is created. Defaults to the provider's `default_scope` if unset.
|
2020-10-06 20:34:16 -04:00
|
|
|
|
|
|
|
|
### Optional
|
2020-07-02 14:22:08 -07:00
|
|
|
|
2022-05-13 18:10:43 -07:00
|
|
|
- `description` (String) The group description.
|
|
|
|
|
- `member_ids` (Set of String) Resource IDs for group members, these are most likely boundary users.
|
|
|
|
|
- `name` (String) The group name. Defaults to the resource name.
|
2020-10-07 12:04:11 -04:00
|
|
|
|
2021-05-05 10:02:53 -07:00
|
|
|
### Read-Only
|
2020-10-19 12:40:50 -04:00
|
|
|
|
2022-05-13 18:10:43 -07:00
|
|
|
- `id` (String) The ID of the group.
|
2020-10-19 12:40:50 -04:00
|
|
|
|
2020-10-07 12:04:11 -04:00
|
|
|
## Import
|
|
|
|
|
|
|
|
|
|
Import is supported using the following syntax:
|
|
|
|
|
|
|
|
|
|
```shell
|
|
|
|
|
terraform import boundary_group.foo <my-id>
|
|
|
|
|
```
|