Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com>
28 lines
697 B
Terraform
28 lines
697 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_user" "foo" {
|
|
name = "User 1"
|
|
scope_id = boundary_scope.org.id
|
|
}
|
|
|
|
resource "boundary_user" "bar" {
|
|
name = "User 2"
|
|
scope_id = boundary_scope.org.id
|
|
}
|
|
|
|
resource "boundary_role" "example" {
|
|
name = "My role"
|
|
description = "My first role!"
|
|
principal_ids = [boundary_user.foo.id, boundary_user.bar.id]
|
|
scope_id = boundary_scope.org.id
|
|
}
|