Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
First attempt at adding a module to support AWS ECS discovery.
For containers running on AWS ECS, the exposed port of the service may be dynamically assigned .
This provider - when initialised with the correct cluster, service and container names - will attempt to locate the container running the service and provide the container host IP address and dynamically assigned port.
For example if we have a cluster
consul-cluster
running two instances of serviceconsul-server-svc
, which in turn each run a single consul server container namesconsul-server
, exposing the default 8500 http port] we might have this setup:This service would return the following two address strings, to access the service from outside the container instance host:
["10.0.0.1:32445", "10.0.0.2:31922"]
This provider (
awsecs
) takes the following parameters:aws
provider)aws
provider)aws
provider)Test format copied from the
provider/aws/aws_discover_test.go
file.Terraform template(s) created and tested in
eu-west-2
.Follows format provided in main README.md: