When using AWS Cloud Map (Route 53 Service Discovery), the Route53AutoNamingClient uses the service id (e.g. srv-xxxxxx) exclusively.
This makes it troublesome for moving between environments for things like @Client usage. I'd like to propose that we add the ability for the Route52AutoNamingClient to also lookup based on Service Name. First impressions are that this could be as simple as maintaining a map in the client that is populated during convertServiceIds and read from during getInstances. I'm happy to pull together a PR.
When using AWS Cloud Map (Route 53 Service Discovery), the Route53AutoNamingClient uses the service id (e.g.
srv-xxxxxx
) exclusively.This makes it troublesome for moving between environments for things like @Client usage. I'd like to propose that we add the ability for the
Route52AutoNamingClient
to also lookup based on Service Name. First impressions are that this could be as simple as maintaining a map in the client that is populated duringconvertServiceIds
and read from duringgetInstances
. I'm happy to pull together a PR.Steps to Reproduce
@Client("yourservicename")
Expected Behaviour
You should get a valid, load-balanced Client created.
Actual Behaviour
Exception from
Route53AutoNamingClient