NodeLifecycleStagesProperty Struct
The ordered scripts to run at each compute node lifecycle stage.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_pcs as pcs } from 'aws-cdk-lib';
const nodeLifecycleStagesProperty: pcs.CfnComputeNodeGroup.NodeLifecycleStagesProperty = {
nodeBootstrapped: [{
name: 'name',
scriptSource: {
scriptLocation: 'scriptLocation',
// the properties below are optional
checksum: 'checksum',
s3VersionId: 's3VersionId',
},
// the properties below are optional
arguments: ['arguments'],
executionPolicy: 'executionPolicy',
onError: 'onError',
}],
nodeReady: [{
name: 'name',
scriptSource: {
scriptLocation: 'scriptLocation',
// the properties below are optional
checksum: 'checksum',
s3VersionId: 's3VersionId',
},
// the properties below are optional
arguments: ['arguments'],
executionPolicy: 'executionPolicy',
onError: 'onError',
}],
};
Properties
nodeBootstrappedIResolvable | IResolvable | CfnComputeNodeGroup.NodeLifecycleScriptProperty[]node_bootstrappedtyping.Union[IResolvable, typing.List[typing.Union[IResolvable, NodeLifecycleScriptProperty]]]nodeBootstrappedIResolvableNodeBootstrappedIResolvableNodeBootstrappedinterface{}#Scripts to run after the node is bootstrapped, once the PCS configuration phase completes and before slurmd starts.
nodeReadyIResolvable | IResolvable | CfnComputeNodeGroup.NodeLifecycleScriptProperty[]node_readytyping.Union[IResolvable, typing.List[typing.Union[IResolvable, NodeLifecycleScriptProperty]]]nodeReadyIResolvableNodeReadyIResolvableNodeReadyinterface{}#Scripts to execute when the node becomes ready (every boot).