How do I configure an Amazon MQ instance that's in a VPC to invoke a Lambda function?

0

I set up an Amazon MQ instance in a VPC and configured an MQ trigger to invoke a Lambda function. The function is assigned to the same VPC and Security Group as the Amazon MQ instance, but the MQ trigger keeps returning the following error:

PROBLEM: Connection error. Please check your event source connection configuration.

If I make the Amazon MQ instance publicly accessible, the MQ trigger invokes the function. However, I can't make the Amazon MQ instance publicly accessible because of security requirements.

Is there a way to have the MQ trigger invoke the Lambda function without making the Amazon MQ instance public?

AWS
Jason_W
질문됨 3년 전1720회 조회
1개 답변
0
수락된 답변

To have an Amazon MQ instance that's in a VPC invoke a Lambda function, your broker must either use a public endpoint or provide access to the VPC. To provide access to the VPC, you must create an interface VPC endpoint. For more information, see Configuring interface VPC endpoints for Lambda.

profile pictureAWS
전문가
Uri
답변함 3년 전
profile picture
전문가
검토됨 15일 전
  • I have a question to your answer: If the Lambda is within the same VPC as the MQ instance already as the OP said, why do I need to create an interface VPC endpoint? Shouldn't the Lambda already be able to access the MQ instance then?

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

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

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

관련 콘텐츠