- Newest
- Most votes
- Most comments
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:
-
You can update the domain settings using the
update-domaincommand with the specified domain ID, user settings, space settings, and settings for update, as well as the region. -
The network access type can be changed after domain creation using the
--app-network-access-typeparameter of theupdate-domaincommand. -
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.
- If there are applications running in any user profile within the domain, you cannot update the
Regarding your specific situation:
-
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.
-
To resolve this, you'll need to update the domain to use your new VPC. Use the AWS CLI
update-domaincommand to specify the new VPC settings. -
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.
-
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
Relevant content
asked a year ago
- AWS OFFICIALUpdated 2 years ago
