Skip to content

Latest commit

 

History

History
47 lines (33 loc) · 1.8 KB

File metadata and controls

47 lines (33 loc) · 1.8 KB
page_title duploai_admin_workspace_scope_mapping Resource - duploai
subcategory
description Attaches an infrastructure scope to a DuploCloud AI workspace. Use this to manage the link on its own — for example when the workspace is managed elsewhere, or by a different team — instead of listing the scope in the workspace's scope_ids. Manage a given scope with one or the other, never both.

duploai_admin_workspace_scope_mapping (Resource)

Attaches an infrastructure scope to a DuploCloud AI workspace. Use this to manage the link on its own — for example when the workspace is managed elsewhere, or by a different team — instead of listing the scope in the workspace's scope_ids. Manage a given scope with one or the other, never both.

Example Usage

# Attach an existing scope to an existing workspace.
resource "duploai_admin_workspace_scope_mapping" "example" {
  workspace_id = duploai_admin_workspace.example.id
  scope_id     = duploai_admin_scope.example.id
}

# Manage a scope with EITHER this resource OR the workspace's scope_ids list —
# never both, or the two will fight over the same link on every apply.

Schema

Required

  • scope_id (String) Scope to attach.
  • workspace_id (String) Workspace the scope is attached to.

Read-Only

  • id (String) Composite resource identifier (workspace_id/scope_id).

Import

Import is supported using the following syntax:

The terraform import command can be used, for example:

# Import a workspace-scope mapping by <workspace-id>/<scope-id>
terraform import duploai_admin_workspace_scope_mapping.example <workspace-id>/<scope-id>