Resource boundary_scope

The scope resource allows you to configure a Boundary scope.

Example Usage

Creating the global scope:

resource "boundary_scope" "global" {
  global_scope = true
  scope_id     = "global"
}

Creating an organization scope within global:

resource "boundary_scope" "org" {
  name                     = "organization_one"
  description              = "My first scope!"
  scope_id                 = boundary_scope.global.id
  auto_create_admin_role   = true
  auto_create_default_role = true
}

Creating an project scope within an organization:

resource "boundary_scope" "project" {
  name                   = "project_one"
  description            = "My first scope!"
  scope_id               = boundary_scope.org.id
  auto_create_admin_role = true
}

Creating an organization scope with a managed role for administration (auto create role set false):

resource "boundary_scope" "org" {
  name        = "organization_one"
  description = "My first scope!"
  scope_id    = boundary_scope.global.id
}

resource "boundary_role" "org_admin" {
  scope_id        = boundary_scope.global.id
  grant_scope_ids = [boundary_scope.org.id]
  grant_strings   = ["ids=*;type=*;actions=*"]
  principal_ids   = ["u_auth"]
}

Schema

Required

Optional

Read-Only

Import

Import is supported using the following syntax:

terraform import boundary_scope.foo <my-id>