Create a shared space
Important
Custom IAM policies that allow Amazon SageMaker Studio or Amazon SageMaker Studio Classic to create Amazon SageMaker resources must also grant permissions to add tags to those resources. The permission to add tags to resources is required because Studio and Studio Classic automatically tag any resources they create. If an IAM policy allows Studio and Studio Classic to create resources but does not allow tagging, "AccessDenied" errors can occur when trying to create resources. For more information, see Provide permissions for tagging SageMaker resources.
AWS managed policies for Amazon SageMaker that give permissions to create SageMaker resources already include permissions to add tags while creating those resources.
The following topic demonstrates how to create a shared space in an existing Amazon SageMaker domain. If you created your domain without support for shared spaces, you must add support for shared spaces to your existing domain before you can create a shared space.
Add shared space support to an existing domain
You can use the SageMaker console or the AWS CLI to add support for shared spaces to an existing
domain. If the domain is using VPC only
network access, then you can only add shared space support using the AWS CLI.
Console
Complete the following procedure to add support for Studio Classic shared spaces to an existing domain from the SageMaker console.
-
Open the Amazon SageMaker console at https://console.aws.amazon.com/sagemaker/
. -
On the left navigation pane, choose Admin configurations.
-
Under Admin configurations, choose domains.
-
From the list of domains, select the domain that you want to open the domain settings page for.
-
On the domain details page, choose the domain settings tab.
-
Choose Edit.
-
For Space default execution role, set an IAM role that is used by default for all shared spaces created in the domain.
-
Choose Next.
-
Choose Next.
-
Choose Next.
-
Choose Submit.
AWS CLI
Create a shared space
The following sections demonstrate how to create a shared space from the Amazon SageMaker console, Amazon SageMaker Studio, or the AWS CLI.
Use the following procedures to create a shared space in a domain from Studio.
Complete the following procedure to create a shared space in a domain from the SageMaker console.
-
Open the Amazon SageMaker console at https://console.aws.amazon.com/sagemaker/
. -
On the left navigation pane, choose Admin configurations.
-
Under Admin configurations, choose domains.
-
From the list of domains, select the domain that you want to create a shared space for.
-
On the domain details page, choose the Space management tab.
-
Choose Create.
-
Enter a name for your shared space. shared space names within a domain must be unique. The execution role for the shared space is set to the domain IAM execution role.
This section shows how to create a shared space from the AWS CLI.
You cannot set the execution role of a shared space when creating or updating it.
The DefaultDomainExecRole
can only be set when creating or updating the
domain. shared spaces only support the use of JupyterLab 3 image ARNs. For more information, see
JupyterLab Versioning.
To create a shared space from the AWS CLI, run one of the following commands from the terminal of your local machine.