Stay up to date with the latest from the Knowledge Center. See all new Knowledge Center articles published in the last month, and re:Post's top contributors.
How do I resolve the error "Connect timeout on endpoint URL" on a SageMaker AI notebook instance?
2 minute read
0
When I try to connect to an AWS service from my Amazon SageMaker AI notebook instance, I receive a "Connect timeout on endpoint URL" error. I want to troubleshoot this issue.
Resolution
To connect to AWS services, your notebook instance's subnet must have an Amazon Virtual Private Cloud (Amazon VPC) endpoint for the service that you connect to. Or, the subnet must have access to the internet. You can also turn on direct internet access for your notebook instance.
Add a VPC endpoint for an AWS service to the notebook instance's subnet
Many AWS services offer either an interface endpoint or gateway endpoint. If the AWS service that you're connecting to doesn't offer an endpoint, then you must create a new notebook instance to add a VPC endpoint.
Create a new notebook instance
With direct internet access
The default option is to create a new notebook instance with direct internet access, even when you create the notebook instance in a VPC.