Load global profiles #5640
Unanswered
ruiarodrigues
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
The application I work on runs in an environment where there's global profiles in .aws folder. However those profiles are not to be used by the application. They are meant to be used by the AWS CLI installed there.
When switching to AWS java sdk v2, the application tries to read those files (config and credentials) and fails because the credentials one is using ':' and not '='. It's not supported by the java sdk.
I'm trying for a while to understand how I can disable the load but the only thing I can see is overriding some system properties to point to somewhere else (instead of .aws folder). It's kind of a hack. I tried to set a default profile supplier but even with that the files are loaded by software.amazon.awssdk.core.client.builder.SdkDefaultClientBuilder#mergeGlobalDefaults before checking that we have a default profile supplier configured.
So my question is: how can I avoid the load of the files without hacking the system properties or env variables? Any idea? Shouldn't the sdk have a flag to disable that?
Beta Was this translation helpful? Give feedback.
All reactions