[Python] How to I discover the local IP address or ENI of a running AWS lambda?

Discussão em 'Python' iniciado por Stack, Julho 17, 2025.

  1. Stack

    Stack Membro Participativo

    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.

    Continue reading...

Compartilhe esta Página