'Connection error when set MSK as trigger of AWS Lambda

I'm trying to set MSK as a trigger of AWS Lambda. But there is a problem like the one below. [PROBLEM: Connection error. Your VPC must be able to connect to Lambda and STS, as well as Secrets Manager if authentication is required. You can provide access by configuring PrivateLink or a NAT Gateway.]

I set the Lambda's VPC the same as the MSK cluster's EC2.

But the problem isn't solved.

What should I do to solve the problem? enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source