Opt out of Amazon EFS auto-mounting
You can opt-out of Amazon SageMaker auto-mounting Amazon EFS user folders during domain and user profile creation or for an existing domain or user profile.
Opt out during domain creation
You can opt out of Amazon EFS auto-mounting when creating a domain using either the console or the AWS Command Line Interface.
Console
Complete the following steps to opt out of Amazon EFS auto-mounting when creating a domain from the console.
Open the Amazon SageMaker console at https://console.aws.amazon.com/sagemaker/
. -
Complete the steps in Use custom setup for Amazon SageMaker with the following modification to set up a domain.
-
On the Configure storage step, turn off Automatically mount EFS storage and data.
-
AWS CLI
Use the following command to opt out of Amazon EFS auto-mounting during domain creation using the AWS CLI. For more information about creating a domain using the AWS CLI, see Use custom setup for Amazon SageMaker.
aws --region
region
sagemaker create-domain \ --domain-name "my-domain-$(date +%s)" \ --vpc-iddefault-vpc-id
\ --subnet-idssubnet-ids
\ --auth-mode IAM \ --default-user-settings "ExecutionRole=execution-role-arn
,AutoMountHomeEFS=Disabled" \ --default-space-settings "ExecutionRole=execution-role-arn
"
Opt out for an existing domain
You can opt out of Amazon EFS auto-mounting for an existing domain using either the console or the AWS CLI.
Console
Complete the following steps to opt out of Amazon EFS auto-mounting when updating a domain from the console.
Open the Amazon SageMaker console at https://console.aws.amazon.com/sagemaker/
. -
On the left navigation under Admin configurations, choose Domains.
-
On the Domains page, select the domain that you want to opt out of Amazon EFS auto-mounting for.
-
On the Domain details page, select the Domain settings tab.
-
Navigate to the Storage configurations section.
-
Select Edit.
-
From the Edit storage settings page, turn off Automatically mount EFS storage and data.
-
Select Submit.
AWS CLI
Use the following command to opt out of Amazon EFS auto-mounting while updating an existing domain using the AWS CLI.
aws --region
region
sagemaker update-domain \ --domain-iddomain-id
\ --default-user-settings "AutoMountHomeEFS=Disabled"
Opt out during user profile creation
You can opt out of Amazon EFS auto-mounting when creating a user profile using either the console or the AWS CLI.
Console
Complete the following steps to opt out of Amazon EFS auto-mounting when creating a user profile from the console.
Open the Amazon SageMaker console at https://console.aws.amazon.com/sagemaker/
. -
Complete the steps in Add user profiles with the following modification to create a user profile.
-
On the Data and Storage step, turn off Inherit settings from domain. This allows the user to have a different value than the defaults that are set for the domain.
-
Turn off Automatically mount EFS storage and data.
-
AWS CLI
Use the following command to opt out of Amazon EFS auto-mounting during user profile creation using the AWS CLI. For more information about creating a user profile using the AWS CLI, see Add user profiles.
aws --region
region
sagemaker create-user-profile \ --domain-iddomain-id
\ --user-profile-name "user-profile
-$(date +%s)" \ --user-settings "ExecutionRole=arn:aws:iam::account-id
:role/execution-role-name
,AutoMountHomeEFS=Enabled/Disabled/DefaultAsDomain"
Opt out for an existing user profile
You can opt out of Amazon EFS auto-mounting for an existing user profile using either the console or the AWS CLI.
Console
Complete the following steps to opt out of Amazon EFS auto-mounting when updating a user profile from the console.
Open the Amazon SageMaker console at https://console.aws.amazon.com/sagemaker/
. -
On the left navigation under Admin configurations, choose Domains.
-
On the Domains page, select the domain containing the user profile that you want to opt out of Amazon EFS auto-mounting for.
-
On the Domains details page, select the User profiles tab.
-
Select the user profile to update.
-
From the User Details tab, navigate to the AutoMountHomeEFS section.
-
Select Edit.
-
From the Edit storage settings page, turn off Inherit settings from domain. This allows the user to have a different value than the defaults that are set for the domain.
-
Turn off Automatically mount EFS storage and data.
-
Select Submit.
AWS CLI
Use the following command to opt out of Amazon EFS auto-mounting while updating an existing user profile using the AWS CLI.
aws --region
region
sagemaker update-user-profile \ --domain-iddomain-id
\ --user-profile-nameuser-profile-name
\ --user-settings "AutoMountHomeEFS=DefaultAsDomain"