Choose a VPC - Amazon SageMaker

Choose a VPC

This topic provides detailed information on choosing an Amazon Virtual Private Cloud (VPC) when you onboard to Amazon SageMaker Studio. For more information on onboarding to SageMaker Studio, see Onboard to Amazon SageMaker Studio.

By default, SageMaker Studio uses two VPCs. One VPC is managed by Amazon SageMaker and provides direct internet access. You specify the other VPC, which provides encrypted traffic between the domain and your Amazon Elastic File System (EFS) volume.

You can change this behavior so that Studio sends all traffic over your specified VPC. When you choose this option, you must provide the subnets, security groups, and interface endpoints that are necessary to communicate with the SageMaker API and SageMaker runtime, and various AWS services, such as Amazon Simple Storage Service (Amazon S3) and Amazon CloudWatch, that are used by Studio and your Studio notebooks.

When you onboard to Studio, you tell Studio to send all traffic over your VPC by setting the network access type to VPC only.

To specify the VPC information

When you specify the VPC entities (that is, the VPC, subnet, or security group) in the following procedure, one of three options is presented based on the number of entities you have in the current AWS Region. The behavior is as follows:

  • One entity – Studio uses that entity. This can't be changed.

  • Multiple entities – You must choose the entities from the dropdown list.

  • No entities – You must create one or more entities in order to use Studio. Choose Create <entity> to open the VPC console in a new browser tab. After you create the entities, return to the Studio Get started page to continue the onboarding process.

This procedure is part of the SageMaker Studio onboarding process when you choose Standard setup. Your VPC information is specified under the Network section.

  1. Choose the VPC.

  2. Choose one or more subnets. If you don't choose any subnets, SageMaker uses all the subnets in the VPC.

  3. Select the network access type.

    • Public internet only – Non-EFS traffic goes through a SageMaker managed VPC, which allows internet access. Traffic between the domain and your Amazon EFS volume is through the specified VPC.

    • VPC only – All Studio traffic is through the specified VPC and subnets. Internet access is disabled by default.

  4. Choose the security groups. If you chose Public internet only, this step is optional. If you chose VPC only, this step is required.

    Note

    For the maximum number of allowed security groups, see UserSettings.

For VPC requirements in VPC only mode, see Connect SageMaker Studio Notebooks to Resources in a VPC.