Code spaces in Identity Center domains
In Identity Center domains, Amazon SageMaker Unified Studio provides spaces that you access from the Spaces tab on the Compute page. JupyterLab is the IDE application available by default, and you can create additional spaces as desired.
Creating a code space in Identity Center domains
To create a space, complete the following steps:
Navigate to Amazon SageMaker Unified Studio using the URL from your admin and log in using your SSO or AWS credentials.
-
Navigate to the project you want to create a space in. You can do this by choosing Browse all projects from the center menu.
-
In the Build menu, choose Spaces to navigate to the Spaces tab on the Compute page.
-
Choose Create space.
-
Under Name, enter a name for the space. This name must be unique. No spaces in the project can use the same name.
-
Under Application, choose the IDE application you want to use with the space.
-
Under Instance, choose an Amazon EC2 instance that is most compatible with your use case.
Note
If you use a GPU instance type when configuring your Code Editor application, you must also use a GPU-based image. Within a space, your data is stored in an Amazon EBS volume that persists independently from the life of an instance. You won't lose your data when you change instances.
-
Under Image, choose the image you want to use.
-
Under EBS space storage, enter a value from 16 to 100 to choose a storage size.
-
(Optional) Choose the lifecycle configuration for the space.
-
Find your domain ID. For instructions, see Get project details.
-
Find your user profile ID:
-
In the Compute panel, choose the Spaces tab.
-
The user profile ID is the string following
default-of the default JupyterLab space.
-
-
Create a lifecycle configuration for Amazon SageMaker Unified Studio and reference your ID values from step b.
Note
Attaching the lifecycle configuration to your Amazon SageMaker AI domain and user profile through the AWS CLI is not currently supported. Use the console to create lifecycle configurations.
-
Under Lifecycle configuration, choose the lifecycle you created.
-
-
Under Idle time, enter the amount of time before the space will time out and stop running.
-
(Optional) Attach a custom file system to your space.
-
To attatch a custom file system to a domain see Attaching a custom file system to a domain with the AWS CLI, and reference your ID values from step 10.
-
Under Attach custom file system, attach the file system.
-
-
Choose Create and start space to create the space and have it start running.
It might take up to 5 minutes for Amazon SageMaker Unified Studio to finish creating the space. After the space is created, you can view it in the list on the Spaces tab and choose Open to launch the IDE in your browser.
You can then perform various actions using the three-dot Actions menu on the Spaces tab in Amazon SageMaker Unified Studio. You can edit the space, start or stop running the application, delete the space, or view information about the space.
Editing a code space in Identity Center domains
Project members can edit a space at any time to change certain configurations. Before editing a space, make sure that you have saved any changes to your work in that space.
Note
A space's name and IDE application cannot be changed.
To edit configurations for a space, complete the following steps:
Navigate to Amazon SageMaker Unified Studio using the URL from your admin and log in using your SSO or AWS credentials.
-
Navigate to the project you want to edit a space in. You can do this by choosing Browse all projects from the center menu.
-
In the Build menu, choose Spaces to navigate to the Spaces tab on the Compute page.
-
Choose the three-dot Actions menu next to the space you want to edit. Then choose Configure space.
-
Make the desired changes, then choose Save and restart if the space is running, or Save and start if the space is stopped.
Note
Saving changes to a running space requires a restart, and any unsaved changes will be lost.
Deleting a code space in Identity Center domains
Project members can choose to delete a space in Amazon SageMaker Unified Studio. Deleting a space is permanent and cannot be undone. Before deleting a space, make sure that you have saved all your data and that you are sure that this is the action you would like to take.
Note
You cannot delete the default JupyterLab space in Amazon SageMaker Unified Studio.
To delete a space, complete the following steps:
Navigate to Amazon SageMaker Unified Studio using the URL from your admin and log in using your SSO or AWS credentials.
-
Navigate to the project you want to delete a space in. You can do this by choosing Browse all projects from the center menu.
-
In the Build menu, choose Spaces to navigate to the Spaces tab on the Compute page.
-
Choose the three-dot Actions menu next to the space you want to delete. Then choose Delete.
-
Review the information in the window provided, then type confirm where indicated.
-
Choose Delete this space.
Amazon Q support in code spaces for Identity Center domains
Amazon Q free tier support is available across all code space types in IAM domains. When your administrator has subscribed to Amazon Q Developer and added it to your domain, you can access the Amazon Q chat interface and inline code suggestions in both JupyterLab and Code Editor spaces.