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개 답변
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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠