If you need to access Message Queue for Apache Kafka only from a virtual private cloud (VPC), you can purchase and deploy a Message Queue for Apache Kafka instance of the VPC type. You cannot change the network type after you select it.

Prerequisites

Step 1: Purchase a Message Queue for Apache Kafka instance

  1. Log on to the Message Queue for Apache Kafka console.
  2. In the Resource Distribution section of the Overview page, select the region where your instance resides.
  3. On the Instances page, click Buy Instance.
  4. On the buy page, select VPC for Network, set other parameters as needed, and then click Buy Now.
  5. Confirm and pay for the order.

Step 2: Obtain the VPC information

  1. Log on to the VPC console.
  2. Select the region where your VPC is deployed.
  3. In the left-side navigation pane, click vSwitch.
  4. On the vSwitch page, click the instance whose vSwitch ID and VPC ID you want to view. On the page that appears, view the vSwitch ID and VPC ID.

Step 3: Deploy the instance

  1. In the Message Queue for Apache Kafka console, click Instances in the left-side navigation pane. On the page that appears, find the instance that is in the Not Deployed state and that you want to deploy. Then, click Deploy.
  2. In the Deploy Instance panel, deploy the instance.
    1. From the VPC ID drop-down list, select your VPC ID.
    2. From the vSwitch ID drop-down list, select your vSwitch ID.
      After you select the vSwitch ID, the system automatically selects the zone where the vSwitch is located.
    3. Optional:If the instance edition is the Professional Edition, you can select whether to deploy the instance across zones.
      Cross-zone instances can provide high disaster recovery capabilities and withstand breakdowns in data centers.
    4. Click Deploy.
    The instance enters the Deploying state. The instance deployment takes about 10 to 30 minutes.

Step 4: View the endpoint

  1. In the Message Queue for Apache Kafka console, click Instances in the left-side navigation pane. On the Instances page, click the name of the instance whose endpoint you want to view.
  2. On the Instance Details page, click the Endpoint tab. On the tab that appears, view the Default Endpoint of the instance.

What to do next

Step 3: Create resources