Skip to content

WillHoule/xray-ecs-discovery-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

xray-ecs-discovery-example

Example project that uses X-Ray and SSM Parameter store.

The X-Ray container is run as a standalone daemon, and outputs its IP (assigned by the Docker0 bridge network) to the Parameter store. Which can then be consumed by separate application containers, and exported into their environment at run time - which allows them to communicate with the X-Ray daemon.

Installation

Either use the pre-built images, or build manually from the assets in this repository.

Pre-built Images

Usage

Launch the daemon in your ECS cluster (running it as a service, with the 'one task per host' placement template would give you the most 'daemon-like' behavior). When the example application container is launched, it should pull the daemon's IP from the SSM Parameter store, and HTTP requests against the container should begin showing up in the X-Ray console

IAM Roles

About

Example setup with a standalone X-Ray container, and application container which uses the SSM Parameter store for discovery

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published