Lambda AZ metadata Powertools support: Python not yet released, TypeScript available
Tried using Powertools to fetch Lambda AZ metadata (announced March 19, 2026) following the official docs. Python failed immediately.
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:
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.
