Closed michaelklishin closed 6 years ago
Location where this happens: https://github.com/gmr/rabbitmq-aws/blob/master/src/rabbitmq_aws.erl#L220
I don't know if it makes sense to hardcode a table of TLDs and wonder if that value is discoverable. Going to see what boto3 does in this circumstance.
@gmr so they basically use a table of known values. Since this plugin uses a very limited set of services, would you agree it'd be sufficient to compute the "base host" using a function with preconfigured heads?
Unfortunately, as inelegant as it is. I'd much rather be able to discover this but meh, should be a simple change.
@gmr any tweaks you'd like to see in https://github.com/rabbitmq/rabbitmq-aws/pull/7?
See this rabbitmq-users thread.
The plugin currently uses AWS API endpoint(s) specific to the US region. We should make this configurable and, provided that we already ask for the region to be configured, pick the default according to the AWS docs.