Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com>
30 lines
797 B
Terraform
30 lines
797 B
Terraform
# Copyright (c) HashiCorp, Inc.
|
|
# SPDX-License-Identifier: MPL-2.0
|
|
|
|
resource "boundary_scope" "org" {
|
|
name = "organization_one"
|
|
description = "My first scope!"
|
|
scope_id = "global"
|
|
auto_create_admin_role = true
|
|
auto_create_default_role = true
|
|
}
|
|
|
|
resource "boundary_scope" "project" {
|
|
name = "project_one"
|
|
description = "My first scope!"
|
|
scope_id = boundary_scope.org.id
|
|
auto_create_admin_role = true
|
|
}
|
|
|
|
resource "boundary_user" "foo" {
|
|
description = "foo user"
|
|
scope_id = boundary_scope.org.id
|
|
}
|
|
|
|
resource "boundary_group" "example" {
|
|
name = "My group"
|
|
description = "My first group!"
|
|
member_ids = [boundary_user.foo.id]
|
|
scope_id = boundary_scope.project.id
|
|
}
|