Resource: aws_sagemaker_space

Provides a SageMaker Space resource.

Example Usage

Basic usage

resource "aws_sagemaker_space" "example" {
  domain_id  = aws_sagemaker_domain.test.id
  space_name = "example"
}

Argument Reference

This resource supports the following arguments:

Ownership Settings

Space Sharing Settings

Space Settings

Code Editor App Settings

Custom File System

Jupyter Lab App Settings

Kernel Gateway App Settings

Jupyter Server App Settings

EFS File System

Code Repository
Default Resource Spec
Custom Image

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

In Terraform v1.5.0 and later, use an import block to import SageMaker Spaces using the id. For example:

import {
  to = aws_sagemaker_space.test_space
  id = "arn:aws:sagemaker:us-west-2:123456789012:space/domain-id/space-name"
}

Using terraform import, import SageMaker Spaces using the id. For example:

% terraform import aws_sagemaker_space.test_space arn:aws:sagemaker:us-west-2:123456789012:space/domain-id/space-name