1 Answer
- Newest
- Most votes
- Most comments
0
Hi,
I had a similar issue and solved it by adding the custom images to the DefaultSpaceSettings as well.
- Describe your domain to get the
aws sagemaker describe-domain --domain-id <YOUR_DOMAIN_ID>. Here you should see yourDefaultUserSettingscontaining your custom images. - Add the custom image to the
DefaultSpaceSettingsas well asDefaultUserSettings. - Update the domain with the new JSON
aws sagemaker update-domain --domain-id <YOUR_DOMAIN_ID> --cli-input-json file://file.json
NOTE this only worked once I the aws-cli upgraded from 2.17.42 to 2.15.37
https://docs.aws.amazon.com/cli/latest/reference/sagemaker/update-domain.html https://awscli.amazonaws.com/v2/documentation/api/latest/reference/sagemaker/describe-domain.html
{
"DefaultUserSettings": {
"ExecutionRole": "arn:aws:iam::XYZ:role/YOUR_ROLE",
"JupyterLabAppSettings": {
"CustomImages": [
{
"ImageName": "r-base",
"ImageVersionNumber": 1,
"AppImageConfigName": "XYZ"
}
],
"LifecycleConfigArns": []
}
},
"DefaultSpaceSettings": {
"ExecutionRole": "arn:aws:iam::XYZ:role/YOUR_ROLE",
"JupyterLabAppSettings": {
"CustomImages": [
{
"ImageName": "r-base",
"ImageVersionNumber": 1,
"AppImageConfigName": "XYZ"
}
]
}
}
}
answered a year ago
Relevant content
- asked a year ago
