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.
I have tried various techniques suggested here:
Finding local IP addresses using Python's stdlib
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.