There is AWS MSK 3.1.1 setup with 3 brokers, one in each availability zone.
There is NLB.
There is kafka-integrations-dev.com DNS name for NLB.
NLB has 3 listeners for IAM brokers:
- TLS:7200 -> target group #1 TLS:9098 -> IP of broker #1, port 9098.
- TLS:7201 -> target group #2 TLS:9098 -> IP of broker #2, port 9098.
- TLS:7202 -> target group #3 TLS:9098 -> IP of broker #2, port 9098.
There is SSL/TLS certificate with kafka-integrations-dev.com
domain configured for every mentioned listeners.
Is it possible to connect to MSK cluster with IAM auth by kafka-integrations-dev.com:7200
, kafka-integrations-dev.com:7201
, kafka-integrations-dev.com:7202
as bootstrap servers?
Now we are getting error Hostname verification failed
.
I found Making AWS MSK public using NLB and IAM authentication - Hostname verification failed The author stated that connection to MSK via NLB using IAM auth was not supported in 2021.