Filter your Studio spaces
You can use filtering to display only the relevant Amazon SageMaker AI spaces in the AWS Toolkit for Visual Studio Code explorer. The following provides information on manual filtering and automated filtering. For more information on the definitions of manual and automatic filtering, see Filtering overview.
This setup only applies when using the Method 2: AWS Toolkit for Visual Studio Code method to connect from local Visual Studio Code to Amazon SageMaker Studio spaces. See Set up remote access for more information.
Manual filtering
To manually filter displayed spaces:
-
Open VS Code and navigate to the Toolkit for VS Code side panel explorer
-
Find the SageMaker AI section
-
Choose the filter icon on the right of the SageMaker AI section header. This will open a dropdown menu.
-
In the dropdown menu, select the user profiles for which you want to display spaces
Automatic filtering setup when using IAM credentials to sign-in
Automated filtering depends on the authentication method during sign-in. See Connecting to AWS from the Toolkit in the Toolkit for VS Code User Guide for more information.
When you authenticate and connect with IAM Credentials, automated filtering requires Set up when connecting with IAM credentials. Without this setup, if users opt-in for identity filtering, no spaces will be shown.
Once the above is set up, AWS Toolkit matches spaces belonging to user profiles that start with the authenticated IAM user name or assumed role session name.
Automatic filtering is opt-in for users:
-
Open VS Code settings
-
Navigate to the AWS Toolkit extension
-
Find Enable Identity Filtering
-
Choose to enable automatic filtration of spaces based on your AWS identity