If you want to access Message Queue for Apache Kafka from a virtual private cloud (VPC) and over the Internet, you must purchase and deploy an instance of the Internet and 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 Internet and 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. Select a value for Custom Username and Password.
      • Yes: If you select this option, customize the username and password. This option applies to scenarios where multiple instances share the same username and password.
      • No: If you select this option, the default username and password that the system assigns for each instance are used.
    5. Click Deploy.
    The instance enters the Deploying state. The instance deployment takes about 10 to 30 minutes.

Step 4: View instance details

  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, view the endpoints, username, and password of the instance.
    1. On the Endpoint Information tab, view the endpoints of the instance.
      • Default Endpoint: This endpoint is used for access from the VPC.
      • SSL Endpoint: This endpoint is used for access over the Internet.
    2. On the Configuration Information tab, view the values of Username and Password.

What to do next

Step 3: Create resources