How to create a sagemaker serverless endpoint via cloudformation?

1

based on the documentation, i am creating a model and trying to create an sagemaker endpoint configuration for a serverless endpoint (sample below) , I added a ServerlessConfig attribute in my endpoint configuration resource below, but i'm get an error = "Property validation failure: [Encountered unsupported properties in {/} [ServerlessConfig]]. any ideas?

SageMakerModel:
    Type: AWS::SageMaker::Model
    Properties: 
      Containers: 
        -
          Image: !Ref ImageURI
          ModelDataUrl: !Ref ModelData
          ExecutionRoleArn: !Ref RoleArn

SageMakerEndpointConfig:
    Type: "AWS::SageMaker::EndpointConfig"
    Properties:
      ServerlessConfig: 
        -
          MaxConcurrency: 5
1 Answer
0

ServerlessConfig is a property of the ProductionVariant object. So, something similar to this would work -

Type: "AWS::SageMaker::EndpointConfig"
Properties:
  ProductionVariants:
    -  
      VariantName: serverless-variant
      ServerlessConfig: 
        MaxConcurrency: 5
        ...
AWS
Durga_S
answered 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.

Guidelines for Answering Questions