| 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. |
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.
# 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.scope_id(String) Scope to attach.workspace_id(String) Workspace the scope is attached to.
id(String) Composite resource identifier (workspace_id/scope_id).
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>