Menu
AWS X-Ray
Developer Guide

Running the X-Ray Daemon on Amazon ECS

On Amazon ECS, create a Docker image that runs the daemon, upload it to a Docker image repository, and then deploy it to your Amazon ECS cluster.

Use an instance profile to grant the daemon permission to upload trace data to X-Ray. For more information, see Giving the Daemon Permission to Send Data to X-Ray.

Use a Dockerfile file to create a Docker image that runs the daemon.

Example Dockerfile

FROM ubuntu:12.04
COPY xray /usr/bin/xray
CMD xray --log-file /var/log/xray-daemon.log &

Download the X-Ray daemon Linux executable into the same folder as your Dockerfile and build it to create an image.