- Newest
- Most votes
- Most comments
Potential oversight: The security group's inbound rules are not open for the broker port.
The rules required by the official documentation are as follows:
- Inbound: Allow all traffic on the Apache Kafka broker port from the security group specified as the source.
- Outbound: Allow all traffic on port 443 to all destinations, and allow all traffic on the broker port to the security group specified as the source.
You mentioned that the "endpoint SG allows inbound traffic on port 443 from the MSK cluster SG, and the same applies to outbound traffic," but this implies only port 443 is covered, omitting the MSK Serverless broker port (9098). The documentation requires both port 443 and the broker port. If the broker port is missing, it explains why Pipes determines the path is invalid during the configuration validation stage and rejects it before attempting an actual connection.
This hypothesis is also consistent with your observation that neither ACCEPT nor REJECT entries appear in the flow logs (indicating that routing was never even attempted).
One more point: requirements differ between public and private subnets.
The documentation explicitly distinguishes between using a NAT Gateway (or custom NAT) for private subnets and a VPC endpoint for public subnets. Please verify which category your subnet falls into (i.e., check if the route table includes a route to an Internet Gateway). If you are using a private subnet in an environment where NAT is unavailable, there may be a discrepancy between this description and your actual requirements—potentially representing a gap in the documentation.
Hello.
Since MSK Serverless is explicitly listed as a source in the following document, it should be possible to configure it.
https://docs.aws.amazon.com/ja_jp/eventbridge/latest/userguide/eb-pipes-msk.html
You can use EventBridge Pipes to receive records from an Amazon Managed Streaming for Apache Kafka (Amazon MSK) topic, including from the Amazon MSK Serverless cluster type. You can optionally filter or enhance these records before sending them to one of the available destinations for processing.
I understand you have already consulted the following document; have you created and tested the VPC endpoint described there?
With IAM authentication, the Kafka consumer on the EventBridge Pipes side connects to MSK using AWS credentials.
The AWS documentation for the MSK source also states that if IAM authentication is enabled and no secret is specified, IAM is automatically selected.
Since MSK Serverless uses IAM authentication and port 9098 in this configuration, I would first try adding an Interface VPC Endpoint for:
com.amazonaws.<region>.sts
https://repost.aws/knowledge-center/eventbridge-pipes-troubleshoot
To troubleshoot this issue, create Amazon Virtual Private Cloud (Amazon VPC) endpoints for the following services:
- For EventBridge Pipes, create an endpoint for com.amazonaws.region.pipes-data.
- For AWS Security Token Service (AWS STS), create an endpoint for com.amazonaws.region.sts.
- (SASL/SCRAM authentication only) For AWS Secrets Manager, create an endpoint for com.amazonaws.region.secretsmanager.
- For Lambda, create an endpoint for com.amazonaws.region.lambda.
Relevant content
asked 3 years ago
asked 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 9 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
