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 réponse
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
répondu il y a 2 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions