AWS CloudFormation
User Guide (API Version 2010-05-15)

Amazon SageMaker Model ContainerDefinition

The ContainerDefinition property type specifies the definition of the container for a model.

ContainerDefinition is a property of the AWS::SageMaker::Model resource.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

{ "ContainerHostname" : String, "Environment" : JSON object, "ModelDataUrl" : String, "Image" : String }

YAML

ContainerHostname: String Environment: JSON object ModelDataUrl: String Image: String

Properties

ContainerHostname

The DNS host name for the container after Amazon SageMaker deploys it.

Required: No

Type: String

Update requires: Replacement

Environment

The environment variables to set in the Docker container. Each key and value in the Environment string to string map can have length of up to 1024. We support up to 16 entries in the map.

Required: No

Type: JSON object

Update requires: Replacement

ModelDataUrl

The S3 path where the model artifacts, which result from model training, are stored. This path must point to a single gzip compressed tar archive (.tar.gz suffix)

Required: No

Type: String

Update requires: Replacement

Image

The Amazon EC2 Container Registry (Amazon ECR) path where inference code is stored. If you are using your own custom algorithm instead of an algorithm provided by Amazon SageMaker, the inference code must meet Amazon SageMaker requirements. For more information, see Using Your Own Algorithms with Amazon SageMaker

Required: Yes

Type: String

Update requires: Replacement

On this page: