MSK serverless BootstrapBrokerStringTls

0

https://docs.aws.amazon.com/msk/latest/developerguide/msk-authentication.html

Review the heading: 'To set up a client to use authentication' Item 3. `On a machine where you have the AWS CLI installed, run the following command to get the bootstrap brokers of the cluster. Replace Cluster-ARN with the ARN of your cluster.

aws kafka get-bootstrap-brokers --cluster-arn Cluster-ARN

Save the string associated with BootstrapBrokerStringTls in the response.`

If you try item 3, and you have serverless MSK, you get: An error occurred (BadRequestException) when calling the DescribeCluster operation: This operation cannot be performed on serverless clusters.

So what do you do to setup SSL on clients who are using an AWS PrivateLink to access the brokers?

At this time, I am blocked from being able to use the PrivateLink connection to the MSK cluster. When I try, I get: ERROR [Producer clientId=console-producer] Connection to node -1 (XXX.kafka.us-east-1.amazonaws.com/XXX.XXX.XXX.XXX:9098) failed authentication due to: SSL handshake failed (org.apache.kafka.clients.NetworkClient)

  • To further explain, I am using an user account that has appropriate IAM permissions to access the MSK clusters, hence the call on port 9098.

1개 답변
0

Hi you need to use the v2 API:

aws kafka list-clusters-v2 --region <region-name>
aws kafka describe-cluster-v2 --cluster-arn <value>

For now, MSK Serverless only allows SSL via IAM and not MutualTLS. Follow this guide to achieve IAM authentication. https://docs.aws.amazon.com/msk/latest/developerguide/iam-access-control.html

AWS
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠