Skip to content

How to change/edit VPC of SageMaker AI Domain?

0

I've recently made the mistake of thinking that the default VPC had problems while working on my EC2 and I reset it, deleted and created a new one, but when I got back a week later to SageMaker AI Studio, I got this error:

App [default] associated with space [StudioNameHere] and userprofile [null] is not found or in unusable state. Please try again after making sure that the app is created and InService

The domain is inService but the VPC is the old one, and there is no way to change it via the console, is it possible to change it via command line?

And there was a JSON file with labeled data in there that were weeks of work, any possibility of saving it?

1 Answer
1
Accepted Answer

To change or edit the VPC of a SageMaker AI Domain, you can use the AWS CLI. Specifically, you can use the update-domain command to modify the VPC settings. Here's what you need to know:

  1. You can update the domain settings using the update-domain command with the specified domain ID, user settings, space settings, and settings for update, as well as the region.

  2. The network access type can be changed after domain creation using the --app-network-access-type parameter of the update-domain command.

  3. It's important to note that certain considerations apply when updating domain settings:

    • If there are applications running in any user profile within the domain, you cannot update the DefaultUserSettings.ExecutionRole.
    • If there are applications running in any shared spaces within the domain, you cannot update the DefaultSpaceSettings.ExecutionRole.
    • If the domain was created in VPC-only mode, SageMaker AI automatically applies updates to the security group settings for all shared spaces in the domain.

Regarding your specific situation:

  1. The error you're seeing suggests that the app associated with your Studio space is not in a usable state. This could be due to the VPC changes you made.

  2. To resolve this, you'll need to update the domain to use your new VPC. Use the AWS CLI update-domain command to specify the new VPC settings.

  3. As for your JSON file with labeled data, if it was stored within the SageMaker Studio environment, there's a chance it might still be accessible. SageMaker typically stores user data separately from the networking configuration. However, to be certain, you should contact AWS Support for assistance in recovering this data.

  4. In the future, it's recommended to regularly back up important data from your SageMaker Studio environment to a more permanent storage solution like Amazon S3.

Remember, when making changes to VPC configurations, ensure that you have the necessary permissions and that you've properly configured your new VPC with the required subnets, security groups, and endpoints for SageMaker to function correctly.
Sources
Edit domain settings - Amazon SageMaker AI
Connect Amazon SageMaker Studio in a VPC to External Resources - Amazon SageMaker AI

answered 2 years ago

EXPERT

reviewed 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.