An open API service indexing awesome lists of open source software.

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

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.