'Access S3 from Lambda in shared VPC

I have a Lambda in Account B that is currently sitting in a shared VPC from Account A. Account A also has a VPC Endpoint setup to access S3. However when calling S3 from the Lambda, the bucket cannot be reached. If I allow all outbound traffic via an Egress Security Group rule on my Lambda, I can reach the bucket.

My question is, what IP do I need to put in my Egress Rule to allow the communication to S3 to work?

My VPC has a subnet of 10.44.0.0/20, so I have tried setting that up in my Egress Rule, but it still does not work:

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