ClusterLifeCycleConfig
¶
Source code in docs_src/capo_sagemaker/types/cluster_life_cycle_config.py
on_create
instance-attribute
¶
on_create: NotRequired[ClusterLifeCycleConfigFileName]
The file name of the entrypoint script of lifecycle scripts under SourceS3Uri. This entrypoint script runs during cluster creation.
on_init_complete
instance-attribute
¶
on_init_complete: NotRequired[ClusterLifeCycleConfigFileName]
The file name of the entrypoint script of lifecycle scripts under SourceS3Uri. This script runs on the node after the AMI-based initialization is complete.
source_s3_uri
instance-attribute
¶
source_s3_uri: NotRequired[S3Uri]
An Amazon S3 bucket path where your lifecycle scripts are stored.
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-.