Set defaults from the SageMaker console - Amazon SageMaker
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Set defaults from the SageMaker console

Important

Custom IAM policies that allow Amazon SageMaker Studio or Amazon SageMaker Studio Classic to create Amazon SageMaker resources must also grant permissions to add tags to those resources. The permission to add tags to resources is required because Studio and Studio Classic automatically tag any resources they create. If an IAM policy allows Studio and Studio Classic to create resources but does not allow tagging, "AccessDenied" errors can occur when trying to create resources. For more information, see Provide permissions for tagging SageMaker resources.

Amazon Managed Policies for Amazon SageMaker that give permissions to create SageMaker resources already include permissions to add tags while creating those resources.

Important

As of November 30, 2023, the previous Amazon SageMaker Studio experience is now named Amazon SageMaker Studio Classic. The following section is specific to using the Studio Classic application. For information about using the updated Studio experience, see Amazon SageMaker Studio.

You can set default lifecycle configuration scripts from the SageMaker console for the following resources.

  • Domains

  • User profiles

You cannot set default lifecycle configuration scripts for shared spaces from the SageMaker console. For information about setting defaults for shared spaces, see Set defaults from the Amazon CLI.

The following sections outline how to set default lifecycle configuration scripts from the SageMaker console.

Prerequisites

Before you begin, complete the following prerequisites:

Set a default lifecycle configuration for a domain

The following procedure shows how to set a default lifecycle configuration for a domain from the SageMaker console.

  1. Open the Amazon SageMaker console at https://console.amazonaws.cn/sagemaker/.

  2. From the list of domains, select the name of the domain to set the default lifecycle configuration for.

  3. From the Domain details page, choose the Environment tab.

  4. Under Lifecycle configurations for personal Studio apps, select the lifecycle configuration that you want to set as the default for the domain. You can set distinct defaults for JupyterServer and KernelGateway applications.

  5. Choose Set as default. This opens a pop up window that lists the current defaults for JupyterServer and KernelGateway applications.

  6. Choose Set as default to set the lifecycle configuration as the default for its respective application type.

Set a default lifecycle configuration for a user profile

The following procedure shows how to set a default lifecycle configuration for a user profile from the SageMaker console.

  1. Open the Amazon SageMaker console at https://console.amazonaws.cn/sagemaker/.

  2. From the list of domains, select the name of the domain that contains the user profile that you want to set the default lifecycle configuration for.

  3. From the Domain details page, choose the User profiles tab.

  4. Select the name of the user profile to set the default lifecycle configuration for. This opens a User Details page.

  5. From the User Details page, choose Edit. This opens an Edit user profile page.

  6. From the Edit user profile page, choose Step 2 Studio settings.

  7. Under Lifecycle configurations attached to user, select the lifecycle configuration that you want to set as the default for the user profile. You can set distinct defaults for JupyterServer and KernelGateway applications.

  8. Choose Set as default. This opens a pop up window that lists the current defaults for JupyterServer and KernelGateway applications.

  9. Choose Set as default to set the lifecycle configuration as the default for its respective application type.