aws-beam / aws-codegen

Code generator for AWS clients in Erlang and Elixir.
Other
53 stars 49 forks source link

Add support for overriding host #51

Open tfwright opened 3 years ago

tfwright commented 3 years ago

https://github.com/aws-beam/aws-codegen/issues/49

Notes:

jfacorro commented 3 years ago

@tfwright Thank you for the contribution 😄 . There's currently a lack of testing so for the time being it would be helpful and preferable to accompany a PR in the generator with a link to the generated aws_erlang code and aws-elixir code. Let me know if you need assistance with generating these.

tfwright commented 3 years ago

@jfacorro happy to generate those, but where should the links I would add in the PR point to? PRs on those repos?

jfacorro commented 3 years ago

@tfwright I have been mainly doing what you describe. Opening PRs in the generated repos so that the pipelines there get triggered. It's a little awkward but it's only until we include the generating and building of those in this repos pipeline.

josevalim commented 3 years ago

@jfacorro another option is to bundle the three into a single git repo. Both rebar3 and mix support sparse checkouts, so people can still access the lib individually.

josevalim commented 3 years ago

@tfwright how would you setup the host from the Elixir side? We want to add some tests with bypass and it may require this.

tfwright commented 3 years ago

@josevalim it would be a new option key in the client struct that would preempt the keys currently used to compose the host (prefix, region, endpoint)

sherbondy commented 3 years ago

This is great! Something like this is also necessary to support AWS's Elemental MediaConvert service. For whatever reason, it has customer-specific endpoints with a per-account 8-digit prefix: https://docs.aws.amazon.com/mediaconvert/latest/apireference/getting-started.html

onno-vos-dev commented 6 months ago

I'll take a look and pick this up in the coming week or so 👌