admin管理员组

文章数量:1278985

I've been trying to set up a connection between my local machine (OSX) and a serverless AWS MSK that is behind a VPC to be able to send messages.

Previously, I managed to set it up and send messages in a EC-2 instance behind the same VPC, and everything worked fine.

I found a few guides and following any of them ends up in timeouts when I try connecting to kafka. I would like to make one of them work, I will link it here and explain in short what it suggests to do: guide.

  1. I created Route 53 on AWS in my VPC in 2 zones and received two IPs.
  2. I added the inbound rule with my own IP address and ports 53 and 9098 (TCP/UDP) to the security group that is associated with my VPC and all the relevant services.

As the final step I needed to set up a DNS server, I'm not on Windows, and I have to admit, the networking is my weak spot, and I barely understand how it all works, so I installed dnsmasq. I added two lines

server=kafka-serverless.eu-central-1.amazonaws/<ip-1-route-35> 
server=kafka-serverless.eu-central-1.amazonaws/<ip-2-route-35>

That didn't do anything. I then tried creating creating a file with the name kafka-serverless.eu-central-1.amazonaws in /etc/resolver/ and put

nameserver <ip-1-route-35> 
nameserver <ip-2-route-35>

And that didn't do anything either. Most likely this isn't the way to do it. Could anyone help me with the proper settings in this case?

本文标签: amazon web servicesCan39t connect to AWS MSK Serverless via a local machineStack Overflow