Skip to content

Keeps an AWS ALB target group in sync with a Consul service

Notifications You must be signed in to change notification settings

trackit/consul2alb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

consul2alb

consul2alb keeps an ALB target group’s list of instance-port couples with Consul’s list of node-port couples for a given service name.

Warning
This script assumes the Consul node names for your instances are identical to their EC2 instance IDs.

How to

consul2alb will listen to changes in Consul’s list of services for a given service name, and on each change will issue an API call to update an ALB target group. The script will keep running until you stop it. You can use the Dockerfile if you don’t want to deal with dependencies.

The program needs two environment variables to be provided:

CONSUL2ALB_SERVICE_NAME Required

The name of the service in Consul.

CONSUL2ALB_TARGET_GROUP_ARN Required

The ARN of the ALB target group.

About

Keeps an AWS ALB target group in sync with a Consul service

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages