@shinyaz

Lambda Managed Instances don't support --log-type Tail — use CloudWatch platform.report instead

1 min read

Tried invoking a Lambda Managed Instances function with --log-type Tail and got an immediate error.

Output
Tail logs are not supported for functions configured with capacity provider.

With standard Lambda, --log-type Tail is the go-to for getting REPORT lines (Duration, Billed Duration, Init Duration). Not an option with MI.

Instead, platform.report events in CloudWatch Logs contain the Duration metrics.

Terminal
aws logs filter-log-events \
  --log-group-name /aws/lambda/YOUR_FUNCTION_NAME \
  --filter-pattern "platform.report" \
  --start-time $(( $(date +%s) - 300 ))000 \
  --region ap-northeast-1 \
  --query 'events[*].message' --output text

The platform.report JSON includes metrics.durationMs and spans (responseLatency, responseDuration) — actually more detailed than the REPORT line from Tail logs.

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.