@shinyaz

Lambda AZ metadata Powertools support: Python not yet released, TypeScript available

1 min read

Tried using Powertools to fetch Lambda AZ metadata (announced March 19, 2026) following the official docs. Python failed immediately.

Python
from aws_lambda_powertools.utilities.lambda_metadata import get_lambda_metadata
# → ModuleNotFoundError: No module named 'aws_lambda_powertools.utilities.lambda_metadata'

The latest version via pip install "aws-lambda-powertools" is 3.25.0 (released March 4, 2026) — before the AZ metadata feature announcement on March 19. The lambda_metadata module simply doesn't exist in the package yet.

Meanwhile, TypeScript works out of the box with @aws-lambda-powertools/commons 2.32.0:

TypeScript
import { getMetadata } from '@aws-lambda-powertools/commons/utils/metadata';
 
const metadata = await getMetadata();
const azId = metadata.AvailabilityZoneID; // e.g., "apne1-az2"

Until the Python Powertools release catches up, use direct API access. A reminder that code examples in AWS docs don't always mean the library has shipped.

Share this post

Shinya Tahara

Shinya Tahara

Solutions Architect @ AWS

I'm a Solutions Architect at AWS, providing technical guidance primarily to financial industry customers. I share learnings about cloud architecture and AI/ML on this site.The views and opinions expressed on this site are my own and do not represent the official positions of my employer.