To access a Kafka instance over a public network, enable public access and configure EIPs for the instance.
If you no longer need public access to the instance, you can disable it as required.
Select the region where your Kafka instance is located.
After public access is enabled, configure the access mode (plaintext or ciphertext) and security group rules listed in Table 1 before attempting to access Kafka. For details about accessing Kafka, see Connecting to an Instance.
Select the region where your Kafka instance is located.
Direction |
Protocol |
Port |
Source |
Description |
---|---|---|---|---|
Inbound |
TCP |
9092 |
0.0.0.0/0 |
Accessing a Kafka instance over a private network within a VPC (in plaintext) |
Inbound |
TCP |
9093 |
0.0.0.0/0 |
Accessing a Kafka instance over a private network within a VPC (in ciphertext) |
After a security group is created, its default inbound rule allows communication among ECSs within the security group and its default outbound rule allows all outbound traffic. In this case, you can access a Kafka instance within a VPC, and do not need to add rules according to Table 2.