AWS Lambda functions can now retrieve the Availability Zone ID they run in via a metadata endpoint in the execution environment. This data allows building AZ-aware routing, such as preferring same-AZ service endpoints to lower latency and enhance performance.
Additionally, this supports resilience patterns like injecting faults scoped to specific AZs for testing. The feature is fully compatible with all Lambda runtimes, including custom and containerized, integrates with existing Lambda features, and is available at no extra cost in all commercial regions.
Source & further reading
AWS Lambda now supports Availability Zone metadata ↗Source published 2026-03-19. This report was prepared with AI assistance from the linked primary-source material. Claims and limitations should be checked against the original announcement or research.