@shinyaz

agentcore deploy X-Ray ValidationException is harmless

Got this warning mid-deploy and thought something broke:

⚠️ Failed to enable observability: ValidationException: X-Ray Delivery Destination is supported with CloudWatch Logs as a Trace Segment Destination. Please enable the CloudWatch Logs destination for your traces using the UpdateTraceSegmentDestination API

Turns out it's fine. This fires during the memory resource (STM) creation phase because the X-Ray trace segment destination hasn't been set to CloudWatch Logs yet at that point.

The subsequent runtime creation phase outputs Configured X-Ray trace segment destination to CloudWatch Logs and auto-configures everything. Runtime observability works normally, and the agent itself is completely unaffected.

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.