IBM Cloud Docs
Using virtual private endpoints for VPC to privately connect to IBM Cloud Transit Gateway

Using virtual private endpoints for VPC to privately connect to IBM Cloud Transit Gateway

IBM Cloud® Virtual Private Endpoints (VPE) for VPC enables you to connect to IBM Cloud Transit Gateway from your VPC network by using the IP addresses of your choosing, which is allocated from a subnet within your VPC.

VPEs are virtual IP interfaces that are bound to an endpoint gateway created on a per service, or service instance, basis (depending on the service operation model). The endpoint gateway is a virtualized function that scales horizontally, is redundant and highly available, and spans all availability zones of your VPC. Endpoint gateways enable communications from virtual server instances within your VPC and IBM Cloud® service on the private backbone. VPE for VPC gives you the experience of controlling all the private addressing within your cloud. For more information, see About virtual private endpoint gateways.

Before you begin

Before you target a virtual private endpoint for IBM Cloud®, you must complete the following tasks.

Setting up a VPE for IBM Cloud Transit Gateway

When you create a VPE gateway by using the CLI or API, you must specify the Cloud Resource Name (CRN) of the region in which you want to connect to IBM Cloud Transit Gateway. Review the following table for the available regions and CRNs to use to create your VPE gateway.

IBM Cloud Transit Gateway supports VPEs in all the VPC regions as shown.

Table 1. Region availability and Cloud Resource Names (CRNs) for connecting IBM Cloud Transit Gateway over IBM Cloud private networks
Location Region Cloud Resource Name (CRN)
Dallas us-south crn:v1:bluemix:public:container-registry:us-south:::endpoint:vpe.us-south.container-registry.cloud.ibm.com
Frankfurt eu-de crn:v1:bluemix:public:container-registry:eu-de:::endpoint:vpe.eu-de.container-registry.cloud.ibm.com
London eu-gb crn:v1:bluemix:public:container-registry:eu-gb:::endpoint:vpe.eu-gb.container-registry.cloud.ibm.com
Osaka jp-osa crn:v1:bluemix:public:container-registry:jp-osa:::endpoint:vpe.jp-osa.container-registry.cloud.ibm.com
Sao Paulo br-sao crn:v1:bluemix:public:container-registry:br-sao:::endpoint:vpe.br-sao.container-registry.cloud.ibm.com
Sydney au-syd crn:v1:bluemix:public:container-registry:au-syd:::endpoint:vpe.au-syd.container-registry.cloud.ibm.com
Tokyo jp-tok crn:v1:bluemix:public:container-registry:jp-tok:::endpoint:vpe.jp-tok.container-registry.cloud.ibm.com
Toronto ca-tor crn:v1:bluemix:public:container-registry:ca-tor:::endpoint:vpe.ca-tor.container-registry.cloud.ibm.com
Washington DC us-east crn:v1:bluemix:public:container-registry:us-east:::endpoint:vpe.us-east.container-registry.cloud.ibm.com

Configuring an endpoint gateway

To configure a virtual private endpoint gateway, follow these steps:

  1. List the available services, including IBM Cloud infrastructure services available (by default) for all VPC users.
  2. Create an endpoint gateway for IBM Cloud Transit Gateway that you want to be privately available to the VPC.
  3. Bind a reserved IP address to the endpoint gateway.
  4. View the created VPE gateways associated with the IBM Cloud Transit Gateway. For more information, see Viewing details of an endpoint gateway.

Now, your virtual server instances in the VPC can access your IBM Cloud Transit Gateway instance privately through it.

Using your VPE for IBM Cloud Transit Gateway

After you create an endpoint gateway for IBM Cloud Transit Gateway, follow these steps:

Using the VPE with the CLI

Use the following steps to update to the latest version of the CLI and the IBM Cloud Transit Gateway plug-in.

  1. Update the IBM Cloud CLI to the latest version:

    ibmcloud update
    
  2. Update the transit gateway CLI plug-in:

    ibmcloud plugin update tg
    

Using the VPE with the VPC API

After you create an endpoint gateway for the IBM Cloud Transit Gateway service, use the service endpoint's FQDN private.transit.cloud.ibm.com in the URL to access the service. For example:

curl https://private.transit.cloud.ibm.com/v1/transit_gateways?version='2020-03-31' -H "Authorization: Bearer $iam_token"

Using the VPE with the SDK

After you create an endpoint gateway for IBM Cloud Transit Gateway, you must use the private endpoint's FQDN when you set the service's FQDN during construction of the transit gateway service object.

private.transit.cloud.ibm.com

For examples of setting the service's FQDN for the specific SDK language, see SDK API examples.

Using the VPE with Terraform

If you plan to access the transit gateway service by using Terraform, make sure to set the IBMCLOUD_TG_API_ENDPOINT environment variable to private.transit.cloud.ibm.com. For example:

export IBMCLOUD_TG_API_ENDPOINT=private.transit.cloud.ibm.com