Remote access to SageMaker Spaces - Amazon SageMaker AI

Remote access to SageMaker Spaces

Remote access allows you to connect your local Visual Studio Code directly to development spaces running on your SageMaker HyperPod cluster. Remote connections use SSM to establish secure, encrypted tunnels between your local machine and the development spaces.

Prerequisites

Before setting up remote access, ensure you have completed the following:

Generate VS Code remote connection

Using HyperPod CLI

If you have the HyperPod CLI installed, you can use this simplified command:

hyp create hyp-space-access --name <space-name> --connection-type vscode-remote

Connecting with VS Code

  1. Generate the VS Code connection URL using one of the methods above

  2. Copy the VS Code URL from the response

  3. Click the URL or paste it into your browser

  4. VS Code will prompt to open the remote connection

  5. Confirm the connection to establish the remote development environment

Supported Development Environments

The web UI provides access to:

  • Jupyter Lab

  • Code Editor

Troubleshooting

Cannot generate connection URLs

Check the following:

  • SageMaker Spaces add-on is running: kubectl get pods -n sagemaker-spaces-system

  • Development space is running and healthy

  • Remote access was enabled during add-on installation

  • User has appropriate EKS Access Entry permissions