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
已提問 2 年前檢視次數 585 次
1 個回答
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
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南