Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/moriyoshi/cloudmap-proxy
A tiny network proxy written in Go that can resolve target address with AWS CloudMap service discovery service.
https://github.com/moriyoshi/cloudmap-proxy
aws cloudmap fargate proxy servicediscovery tcp
Last synced: 2 months ago
JSON representation
A tiny network proxy written in Go that can resolve target address with AWS CloudMap service discovery service.
- Host: GitHub
- URL: https://github.com/moriyoshi/cloudmap-proxy
- Owner: moriyoshi
- Created: 2020-10-27T12:06:00.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-02-11T14:53:06.000Z (almost 4 years ago)
- Last Synced: 2024-06-20T01:50:42.953Z (7 months ago)
- Topics: aws, cloudmap, fargate, proxy, servicediscovery, tcp
- Language: Go
- Homepage:
- Size: 13.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cloudmap proxy
This is a tiny network proxy written in Go that can resolve target address with AWS CloudMap service discovery service.
No Route 53 integration is necessary.
## Synopsis
```
cloudmap-proxy -cache-ttl 60s -conn-timeout 10s -debug aws-servicediscovery:namespace-name:service-name:8080 :8080
```## Command-line spec
```
cloudmap-proxy [-cache-ttl TTL] [-conn-timeout TTL] [-debug] TARGET_ADDR LISTEN_ADDR
```* `-cache-ttl`
Specify cache duration. (default: 1m0s) The value must be followed by a duration unit.
* `-conn-timeout`
Specify connection timeout. (default: 10s) The value must be followed by a duration unit.
* `-debug`
Turn on debug mode
* TARGET_ADDR
The following formats are accepted:
* `HOST:PORT`
HOST may be bracketed IPv6 form (`[::1]`)
* `aws-servicediscovery:namespaceName:serviceName`
Do the discovery for service `serviceName` in the namespace `namespaceName`.
* `aws-servicediscovery-v4:namespaceName:serviceName`
Do the discovery for service `serviceName` in the namespace `namespaceName`, with the preference for IPv4 .
* `aws-servicediscovery-v6:namespaceName:serviceName`
Do the discovery for service `serviceName` in the namespace `namespaceName`, with the preference for IPv6.
* LISTEN_ADDR
The following formats are accepted:
* `HOST:PORT`
* `:PORT`
```