個人用Sagemaker Notebookのlifecycle設定
$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.13.6
BuildVersion: 17G65
create-notebook-instance-lifecycle-config — AWS CLI 1.16.46 Command Reference
$ aws sagemaker create-notebook-instance-lifecycle-config \
--notebook-instance-lifecycle-config-name my-notebook-lifecycle
$ ENCODED_SH=$(base64 -i my-lifecycle-onstart.sh)
$ aws sagemaker update-notebook-instance-lifecycle-config \
--notebook-instance-lifecycle-config-name my-notebook-lifecycle \
--on-start Content=$ENCODED_SH
update-notebook-instance-lifecycle-config — AWS CLI 1.16.46 Command Reference
$ aws sagemaker update-notebook-instance \
--notebook-instance-name test \
--lifecycle-config-name my-notebook-lifecycle