Detach lifecycle configurations
To update your script, you must create a new lifecycle configuration script and attach it to the respective Amazon SageMaker domain (domain), user profile, or shared space. A lifecycle configuration script can't be changed after it's created. For more information about creating and attaching the lifecycle configuration, see Create and associate a lifecycle configuration.
The following section shows how to detach a lifecycle configuration using the Amazon Command Line Interface (Amazon CLI).
Detach using the Amazon CLI
To detach a lifecycle configuration using the (Amazon CLI), remove the desired lifecycle configuration from the list of lifecycle configurations attached to the resource. You then pass the list as part of the respective command:
For example, the following command removes all lifecycle configurations for the JupyterLab application that's attached to the domain.
aws sagemaker update-domain --domain-id
domain-id
\ --regionregion
\ --default-user-settings '{ "JupyterLabAppSettings": { "LifecycleConfigArns": [] } }'