-
Notifications
You must be signed in to change notification settings - Fork 853
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support endpoint override with environment variables #4501
Comments
The compatibility page also mentions this not being supported by the Java SDK |
Feature request acknowledged. Community note: if you want to show your support for this feature, add a 👍 to the description, it helps us with feature prioritization. |
Any progress on this? I am currently testing a Java app using LocalStack and it would be great to be able to switch between the real AWS endpoint and my local testing endpoint without changing any code. This feature is exactly what I am looking for currently and there aren't any other feasible workarounds I can use. |
Related issue here |
I am looking forward to it as well, but I have other (somewhat related) question - are there any plans/options to support providing the endpoints at runtime using System properties (similarly to the credentials)? If this is something that is worth a separate issue, then could you point me to the place I can create it (if it is not Java SDK only related) |
While @BalmungSan correctly points out that in the referenced compatibility matrix the Java SDK is currently listed as not supporting the feature, another page on the AWS documentation actually states it is supported: https://docs.aws.amazon.com/sdkref/latest/guide/settings-reference.html#JVMSettings At least for JVM properties, it states that Would be awesome to have this feature added soon as (at least for me) I'd finally get rid of all custom configurations when creating a S3 client and can rely on standardized configuration everywhere. |
After upgrading to 2.28.4, the JVM system property |
That's right, thank you @matheisco. Support for service-specific endpoints with environment variables and system properties was added in Java SDK version 2.28.1. We updated the compatibility matrix in the Service-specific endpoints reference guide to show SDK for Java 2.x = yes. |
Describe the feature
I'm looking forward to use this feature with the Java SDK.
I was not able to get it working with the SSM client version 2.20.156 and there are no mentions to the Java SDK here.
Use Case
Be able to use SsmClient.create() instead of SsmClient.builder().endpointOverride(customUri).build() when AWS_ENDPOINT_URL or AWS_ENDPOINT_URL_SSM is set.
Proposed Solution
No response
Other Information
No response
Acknowledgements
AWS Java SDK version used
2.20.156
JDK version used
openjdk version "17.0.6" 2023-01-17
Operating System and version
Linux Mint 21.2
The text was updated successfully, but these errors were encountered: