title: Connecting to Lambda service using ec2 inside a private subnet
body: <p>I am trying to run the command “aws lambda list-functions” from an ec2 inside my private subnet that I connected to using a bastion host. The lambda has been deployed to the same VPC and private subnet, but when I try to run the command it times out. They are in the same region, and I have been able to connect to some of my other services within this ec2 but can’t connect to my lambda service endpoint.</p>
  <p>I tried connecting from an ec2 inside a public subnet and that worked fine, but can't connect from ec2 inside the private subnet.</p>