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 Antwort
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
beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen