dougmoscrop / serverless-http

Use your existing middleware framework (e.g. Express, Koa) in AWS Lambda 🎉
Other
1.72k stars 165 forks source link

How to get AWS Account ID #183

Closed ngoyal16 closed 3 years ago

ngoyal16 commented 3 years ago

IF we use AWS IAM as autenitication then How we can get the AWS Account ID of caller with caller username

dougmoscrop commented 3 years ago

I am not sure, we don't use IAM auth for anything other than pure Lambda invocations. Where would you normally obtain this? The context object? If so, there are ways to attach that to the request, maybe we can make that consistent.

ngoyal16 commented 3 years ago

i already got where to find the account id and working fine

vadymhimself commented 2 years ago

@dougmoscrop how to attach the context to request?