# Get AZ inside Lambda

**URL:** <https://forum.serverless.com/t/get-az-inside-lambda/6430>\
**Category:** Serverless Framework\
**Tags:** aws, lambda\
**Created:** [November 12, 2018, 11:16am UTC](https://forum.serverless.com/t/get-az-inside-lambda/6430 "2018-11-12T11:16:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vnistor](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/vnistor/32/2515_2.png) [@vnistor](https://forum.serverless.com/u/vnistor)\
**Post date:** [November 12, 2018, 11:16am UTC](https://forum.serverless.com/t/get-az-inside-lambda/6430/1 "2018-11-12T11:16:32Z")

</div>

Hello,

Has anyone found a way of determining which AZ the current Lambda function is operating in?

I need to work with DB connections to outside the VPC where Lambda is running. The DB is set up with High Availability, with two access points, each in an AZ. Would like the function in an AZ to speak to the DB in the same AZ. So if my Lambda function is running in HA in eu-west-1a, to call the DB endpoint also in eu-west-1a.

Thanks,

Vlad
