All Products
Search
Document Center

:How do I connect an ECS instance in one zone to an ApsaraMQ for Kafka instance in another zone?

Last Updated:Jun 04, 2024

Overview

An Elastic Compute Service (ECS) instance in one zone can be connected to an ApsaraMQ for Kafka instance in another zone over a private network. For more information, see the following section.

Detailed information

To access an ApsaraMQ for Kafka instance in a private network, the following conditions must be met:

  • The ECS instance and the ApsaraMQ for Kafka instance are deployed in the same virtual private cloud (VPC). If the ECS instance and the ApsaraMQ for Kafka instance are not deployed in the same VPC, you can create an instance or re-deploy one of the instances to make them reside in the same VPC. Before you create or re-deploy an instance, you must back up the data to prevent data loss.

  • The ECS instance is in the whitelist of the ApsaraMQ for Kafka instance. For information about how to configure a whitelist, see Configure a whitelist.