- Newest
- Most votes
- Most comments
Hello.
Does Lambda recognize that it is correctly connected to the VPC?
Also, can you confirm that the created PrivateLink can be used normally? (For example, can I connect with curl command from EC2 etc.?)
Is the security group setting in item 4 the security group for the VPC endpoint created in account A?
Is the security group set in item 5 an NLB security group?
In this case, I think the security group needs to allow the CIDR of Lambda's subnet.
https://docs.aws.amazon.com/vpc/latest/privatelink/create-endpoint-service.html
If your Network Load Balancer has a security group, it must allow inbound traffic from the IP addresses of the clients. Alternatively, you can turn off evaluation of inbound security group rules for traffic through AWS PrivateLink. For more information, see Security groups in the User Guide for Network Load Balancers.
If you are setting up a security group in NLB, you will need to make the following settings. Account A VPC Endpoint
AccountB NLB
AccountB NLB target EC2