EventBridge Pipes, running, but not being invoked by MSK Topic

0

Hi,

I have a MSK running in a private subnet and have successfully setup up a Lambda and MSK trigger against a topic and also an EC2 as a consumer running in the same subnet.

I have setup an EventBridge Pipe using the same credentials (that the Lambda uses to auth to MSK) and the Pipe is in a "running" state with a target of CloudWatch using SASL auth.

The Topic has messages, both of the other consumers are triggered.

The EventBrdige Pipe is never invoked according to CloudWatch monitoring, existing messages on the topic and new ones added, no errors are reported.

Any ideas ?

1개 답변
0
수락된 답변

It was permissions.... the Pipes auto created execution role and policy doesn't give Pipes the permissions required to use MSK as a source. I had augmented the auto created role with MSK Full Access but that does include below.

I noticed that my Lambda would only auth with SASL, so added below and then added same to the Pipes execution role.

Pipes showed as running, no errors reported, but clearly it couldn't connect or read. Wild that there are no errors and no logs that I could find. I'm guessing there must be a sequencing of setup issue.

https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#msk-permissions-iam-policy

{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "kafka-cluster:Connect", "kafka-cluster:DescribeGroup", "kafka-cluster:AlterGroup", "kafka-cluster:DescribeTopic", "kafka-cluster:ReadData", "kafka-cluster:DescribeClusterDynamicConfiguration" ], "Resource": "*" } ] }

Matt
답변함 8달 전
profile picture
전문가
검토됨 2달 전

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

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

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

관련 콘텐츠