AWS::SageMaker::Cluster ClusterLifeCycleConfig - AWS CloudFormation

AWS::SageMaker::Cluster ClusterLifeCycleConfig

The lifecycle configuration for a SageMaker HyperPod cluster.

Syntax

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

JSON

{ "OnCreate" : String, "SourceS3Uri" : String }

YAML

OnCreate: String SourceS3Uri: String

Properties

OnCreate

The file name of the entrypoint script of lifecycle scripts under SourceS3Uri. This entrypoint script runs during cluster creation.

Required: Yes

Type: String

Pattern: ^[\S\s]+$

Minimum: 1

Maximum: 128

Update requires: No interruption

SourceS3Uri

An Amazon S3 bucket path where your lifecycle scripts are stored.

Important

Make sure that the S3 bucket path starts with s3://sagemaker-. The IAM role for SageMaker HyperPod has the managed AmazonSageMakerClusterInstanceRolePolicy attached, which allows access to S3 buckets with the specific prefix sagemaker-.

Required: Yes

Type: String

Pattern: ^(https|s3)://([^/]+)/?(.*)$

Maximum: 1024

Update requires: No interruption