https://github.com/dwolla/consul-agent-fargate
Use old versions of the Consul agent as sidecars in AWS Fargate
https://github.com/dwolla/consul-agent-fargate
Last synced: about 2 months ago
JSON representation
Use old versions of the Consul agent as sidecars in AWS Fargate
- Host: GitHub
- URL: https://github.com/dwolla/consul-agent-fargate
- Owner: Dwolla
- Created: 2023-04-03T20:55:45.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-04T18:36:21.000Z (about 2 years ago)
- Last Synced: 2025-02-15T23:45:30.653Z (4 months ago)
- Language: Shell
- Size: 3.91 KB
- Stars: 0
- Watchers: 11
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Consul Agent in Fargate
I've been totally unable to get Consul Agents (up to version 1.2.4) to set the `bind_addr` value using `sockaddr` templates like
```
{{ GetPrivateInterfaces | include "network" "10.0.0.0/8" | attr "address" }}
```and AFAICT in Fargate, there are too many available IP addresses to let Consul pick one on its own. This image finds the IP address to bind to using the ECS Container Metadata Service, and then starts the Consul Agent with a `-bind` parameter set to that IP.
## Usage
Pass the Dwolla environment (in lowercase) as the first value of the command array. Other values will be ignored.