I would like to get the (AWS Lambda container) instance ID that my function is running in.
For now I would just log it - it would help me when debugging issues with my caching algorithm: I could identify which invocations were happening in the same instance.
I looked at the docs for the context object and don't see anything there.
I could do it manually - and I'll put that below as my fallback answer - but I thought I would check whether some sort of real instance ID is available somehow.
via Tom