title: How to I discover the local IP address or ENI of a running AWS lambda?
body: <p>I am trying to discover the VPC IP address or AWS ENI of the currently executing AWS Lambda so that I can use the IP address to filter the VPC logs to find matching records. The Lambda is running in a VPC and does not have a public IP address.</p>
  
  <p>I have tried various techniques suggested here:</p>
  
  <p><a href="https://stackoverflow.com/questions/166506/finding-local-ip-addresses-using-pythons-stdlib">Finding local IP addresses using Python&#39;s stdlib</a></p>
  
  <p>but these do not work for me because I think they are showing the IP address of the container from the container's point of view and not the VPC's point of view.</p>