Skip to content

Conversation

@ChristopherHahnTR
Copy link

@ChristopherHahnTR ChristopherHahnTR commented May 30, 2025

Adds support for AWS SDK v2. AWS SDK v1 is enabled by default, but the new SDK will be used by setting the config useAwsSdkV2=true

The new AWS classes handle region differently than the old.
Old behavior was to check if region is us-east-1 (default) and then override the endpoint URI for each service if it was different.
New code always sets the region based on region from configuration file, unless that value is blank.

Copy link
Contributor

@spencergibb spencergibb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than if statements, create a AwsBinderDelegateV2 so there isn't a binary dependency on the V2 AWS API

@ChristopherHahnTR ChristopherHahnTR changed the title Add support for AWS SDK v2 [Issue 1593] Add support for AWS SDK v2 Jun 2, 2025
eurekaServerHttpClientFactory
);
awsBinder = new AwsBinderDelegate(eurekaServerConfig, eurekaClient.getEurekaClientConfig(), registry, applicationInfoManager);
if(eurekaServerConfig.isUseAwsSdkV2()) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works for Spring Cloud since it does not use EurekaBootStrap

*
* @return
*/
default boolean isUseAwsSdkV2() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a default of false is great.

Copy link
Contributor

@spencergibb spencergibb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have not reviewed any of the *V2 implementations, but the bit in EurekaBootStrap and EurekaServerConfig look fine for Spring Cloud Netflix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants