AWS Lambda Now Knows Which Availability Zone It's Running In
AWS Lambda functions can now query a metadata endpoint to discover their Availability Zone, letting you route traffic to same-AZ databases like ElastiCache, RDS, and MemoryDB. This cuts cross-AZ latency and data transfer costs while making your resilience patterns smarter.
source: [aws/compute-blog]