Skip to content

libcluster provider for AWS ECS instances using awsvpc netowork mode

Notifications You must be signed in to change notification settings

pro-football-focus/libcluster_ecs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libcluster_ecs

This is an EC2 clustering strategy for libcluster. It supports identifying nodes running in Amazon ECS using the awsvpc networking mode. This mode gives each instance its own IP address.

This strategy uses ex_aws to query the describe services and describe task APIs. Access to this API should be granted to the. See the ExAws docs for additional configuration options.

  • EC2 Container Service ListServices
  • EC2 Container Service ListTasks
  • EC2 Container Service DiscribeTasks
config :libcluster,
  topologies: [
    example: [
      strategy: ClusterEcs.Strategy,
      config: [
        cluster: "my-cluster-name",
        service_name: "arn:aws:ecs:us-east-2:1234567:service/my-service",
        region: "us-east-1",
        app_prefix: "my-app",
      ],
    ]
  ]

Installation

The package can be installed by adding libcluster_ecs to your list of dependencies in mix.exs:

def deps do
  [{:libcluster_ecs, "~> 0.4"}]
end

About

libcluster provider for AWS ECS instances using awsvpc netowork mode

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages