ClusterLifeCycleConfigProperty Struct
The lifecycle configuration for a SageMaker HyperPod cluster.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sagemaker as sagemaker } from 'aws-cdk-lib';
const clusterLifeCycleConfigProperty: sagemaker.CfnCluster.ClusterLifeCycleConfigProperty = {
onCreate: 'onCreate',
onInitComplete: 'onInitComplete',
sourceS3Uri: 'sourceS3Uri',
};
Properties
onCreateoptionalstringon_createoptionalstronCreateoptionalStringOnCreateoptionalstringOnCreateoptional*string#The file name of the entrypoint script of lifecycle scripts under `SourceS3Uri` .
This entrypoint script runs during cluster creation.
onInitCompleteoptionalstringon_init_completeoptionalstronInitCompleteoptionalStringOnInitCompleteoptionalstringOnInitCompleteoptional*string#The file name of the extension script under SourceS3Uri.
This script runs after HyperPod configures the default software on the instance. Mutually exclusive with OnCreate.
sourceS3Urioptionalstringsource_s3_urioptionalstrsourceS3UrioptionalStringSourceS3UrioptionalstringSourceS3Urioptional*string#An Amazon S3 bucket path where your lifecycle scripts are stored.
notes
Make sure that the S3 bucket path starts with
s3://sagemaker-. The IAM role for SageMaker HyperPod has the managedAmazonSageMakerClusterInstanceRolePolicyattached, which allows access to S3 buckets with the specific prefixsagemaker-.