- Newest
- Most votes
- Most comments
Hello,
- Please note that when using remote access feature in amazon Sagemaker there are certain fields to be considered like the instance type and Sagemaker distribution image version as mentioned in the below documentation:
[+] https://docs.aws.amazon.com/sagemaker/latest/dg/remote-access.html
- If you are meeting the above requirements. However, another important parameter to be considered is the VPC configurations for the SageMaker domain. If your domain is VPCOnly domain then you have to follow the below documentation.
[+] Set up Studio to run with subnets without internet access within a VPC: https://docs.aws.amazon.com/sagemaker/latest/dg/remote-access-remote-setup-vpc-subnets-without-internet-access.html
Ensure that you have the below endpoints configured for your domain:
com.amazonaws.REGION.ssm com.amazonaws.REGION.ssmmessages
- Kindly check if the space execution role or domain execution role have the necessary permissions configured.
[+] Set up remote access: https://docs.aws.amazon.com/sagemaker/latest/dg/remote-access-remote-setup.html#remote-access-remote-setup-permissions
- Additionally, you can verify if there are any proxy in the Windows-side VS Code extensions (Remote-SSH/ AWS Toolkit)
[+] VS Code Network Connections documentation: https://code.visualstudio.com/docs/setup/network [+] Proxy in VS Code: https://code.visualstudio.com/docs/setup/network
- Please review this guide which explains how to connect to Amazon SageMaker Studio spaces from Visual Studio Code when your Amazon SageMaker AI domain runs in private subnets without internet access .
answered a year ago
It looks like you're experiencing connectivity issues when trying to use remote access to connect your local IDE to a SageMaker space. Here are some troubleshooting steps to resolve this issue:
-
Check if remote access is enabled for your SageMaker space. The RemoteAccess setting must be set to "ENABLED" for your space to allow connections from your local IDE.
-
Verify your IAM permissions. Ensure that the IAM user you're using has the necessary permissions to connect to the SageMaker space.
-
Confirm that you're using a compatible setup:
- Visual Studio Code version 1.90 or later
- A supported operating system (macOS 13+, Windows 10/11, or Linux)
- If using SageMaker Distribution, version 2.7 or later is required
- Your instance should have at least 8GB of memory and not be one of the unsupported instance types
-
If you're using a VPC-only mode for SageMaker, check your security group configurations to ensure they allow outbound traffic to AWS APIs using HTTPS (port 443).
-
Make sure you're using the most recent AWS CLI version if you're using command-line tools as part of your workflow.
-
If you're trying to connect to a specific instance behind an endpoint, check if the instance ID is correct and up-to-date, as instances are regularly replaced throughout the lifecycle of an endpoint.
-
Verify that your space is in the same AWS account and Region that you're trying to connect from.
If the issue persists, you might want to try one of the alternative connection methods, such as using the AWS Toolkit for Visual Studio Code or an SSH terminal connection instead of the deep link access you're currently attempting.
Sources
Troubleshoot connectivity issues between SSM and my SageMaker endpoint | AWS re:Post
Connect your local Visual Studio Code to SageMaker spaces with remote access - Amazon SageMaker AI
SpaceSettingsSummary - Amazon SageMaker
SpaceSettings - Amazon SageMaker
Resolve connectivity issues with SageMaker Studio in VPC-only mode | AWS re:Post
answered a year ago
Relevant content
asked a year ago
asked 4 years ago
