Skip to content

Unable to create endpoint

0

Hi,

I am new to SageMaker and I am trying to deploy my model to an endpoint but am getting the following error:

Failure reason
Unable to locate at least 2 availability zone(s) with the requested instance type ml.t2.medium that overlap with SageMaker subnets

I have tried using different instance types but always the same error

I was under the impression that SageMaker will create the required instances for me and I do not need to create the instances first? I am using the EU-WEST-1 zone and using the console to setup the endpoint

asked 7 years ago2.4K views
1 Answer
0
Accepted Answer

Hello,

Sagemaker engineer here. I looked at the VpcConfig of your model and found only one subnet configured.

The error message "Unable to locate at least 2 availability zone(s) with the requested instance type XYZ that overlap with SageMaker subnets" usually indicates misconfigured VPCs. Sagemaker imposes mandatory requirement for at least 2 availability zones in your VPC subnets even if you only request one instance, to account for the potential use of auto-scaling in the future.

In order to create the endpoint, the number of subnets in your model needs to be at least 2 in distinct availability zones, and ideally as close to the total number of availability zones as possible in the region.

Hope it helps,
Wenzhao

AWS
answered 7 years ago
EXPERT
reviewed 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.