Default settings for Amazon SageMaker AI domains
With SageMaker AI, you can set default settings for your resources at the Amazon SageMaker AI domain level. These default settings are used in the creation of resources within the domain. The following sections list default settings for domain and give information on using context keys when setting defaults.
Domain default settings
You can set the following defaults when creating or updating a domain. Values passed at the user profile and shared space level override defaults set at the domain level.
-
DefaultSpaceSettings
Note
DefaultSpaceSettingsonly supports the use of JupyterLab 3 image ARNs forSageMakerImageArn. For more information, see JupyterLab Versioning in Amazon SageMaker Studio Classic."DefaultSpaceSettings": { "ExecutionRole": "string", "JupyterServerAppSettings": { "DefaultResourceSpec": { "InstanceType": "string", "LifecycleConfigArn": "string", "SageMakerImageArn": "string", "SageMakerImageVersionArn": "string" }, "LifecycleConfigArns": [ "string" ] }, "KernelGatewayAppSettings": { "CustomImages": [ { "AppImageConfigName": "string", "ImageName": "string", "ImageVersionNumber": number } ], "DefaultResourceSpec": { "InstanceType": "string", "LifecycleConfigArn": "string", "SageMakerImageArn": "string", "SageMakerImageVersionArn": "string" }, "LifecycleConfigArns": [ "string" ] }, "SecurityGroups": [ "string" ] }
Context keys
You can add context keys to the IAM policy that creates a domain. This restricts the values that users can pass for those fields. The following list shows the context keys that domain supports and where they're implemented.
-
sagemaker:ImageArns-
Implemented as part of
DefaultUserSettings:SagemakerImageArninDefaultUserSettings.JupyterServerAppSettingsandDefaultUserSettings.KernelGatewayAppSettings.CustomImagesinDefaultUserSettings.KernelGatewayAppSettings. -
Implemented as part of
DefaultSpaceSettings:SagemakerImageArninDefaultSpaceSettings.JupyterServerAppSettingsandDefaultSpaceSettings.KernelGatewayAppSettings.CustomImagesinDefaultSpaceSettings.KernelGatewayAppSettings.
-
-
sagemaker:VpcSecurityGroupIds-
Implemented as part of
DefaultUserSettings:SecurityGroupsinDefaultUserSettings. -
Implemented as part of
DefaultSpaceSettings:SecurityGroupsinDefaultSpaceSettings.
-
-
sagemaker:DomainSharingOutputKmsKeyImplemented as part of
DefaultUserSettings:S3KmsKeyIdinDefaultSpaceSettings.SharingSettings.
You cannot restrict users to passing incompatible values when using context keys for the
defaults. For example, the values for SageMakerImageArn set as part of
DefaultUserSettings and DefaultSpaceSettings must be compatible.
You cannot set incompatible default values.