Skip to main content

AWS ECS Consul Registration

Project description

ecs consul reg

Docker container registration for Consul on AWS ECS.

You may want to use registrator instead. Main differences:

  • python based (If I was comfortable with Golang I would probably just contribute to registrator instead)
  • intended to be run on ec2 not within docker
  • keeps detailed logs (json file)
  • Uses Docker Health instead of running it's own checks

Install on Amazon ECS-Optimized Amazon Linux AMI 2

Pip is not installed:

curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
python get-pip.py

Install

pip install ecs-consul-reg

Run

ecs-consul-reg

Initctl script

todo~

Options

CONSUL_HOST=127.0.0.1
CONSUL_PORT=8500

Options can be supplied as env or in yaml config.

Usage: main.py [OPTIONS]

Options:
  -c, --config TEXT
  -lf, --logfile TEXT
  -ll, --loglevel TEXT
  --help                Show this message and exit.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ecs-consul-reg-0.1.3.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

ecs_consul_reg-0.1.3-py2-none-any.whl (4.7 kB view details)

Uploaded Python 2

File details

Details for the file ecs-consul-reg-0.1.3.tar.gz.

File metadata

  • Download URL: ecs-consul-reg-0.1.3.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.1.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.15rc1

File hashes

Hashes for ecs-consul-reg-0.1.3.tar.gz
Algorithm Hash digest
SHA256 2b3cb4b8b61935da6816e140954a1aceff90ee128fef0520472241921939e75c
MD5 39d9a09ced8e2b4233f95e6b31377972
BLAKE2b-256 1a531848b4abe9c7bc8dc6c48767b7f88ae9ccf31cc421b673abea37539bd34b

See more details on using hashes here.

File details

Details for the file ecs_consul_reg-0.1.3-py2-none-any.whl.

File metadata

  • Download URL: ecs_consul_reg-0.1.3-py2-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.1.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.15rc1

File hashes

Hashes for ecs_consul_reg-0.1.3-py2-none-any.whl
Algorithm Hash digest
SHA256 5f03792a60c61c9cdd96b1e0f3c84e89d81b7a97874a886eb0a0dec99c815431
MD5 f62c5ee19b7ae5ed947389c15ebff876
BLAKE2b-256 9b2b8f08a80e5f4029ac00717738f46c8882682c8352bd1601980c0003188264

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page