-
Notifications
You must be signed in to change notification settings - Fork 2.8k
authentication at proxy is not supported #2526
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
@milesqi what do you mean by "proxy server (iam role configured)"? How is the IAM role being configured? Can you provide a sample code of how you are creating the client? |
Hi @debora-ito ,
I have a feeling that aws java skd is always expecting to find credential locally. But it looks like aws cli can find credentials from remote. Here is logs from aws cli for your reference. |
Hi @debora-ito
|
@milesqi Apologies for the delayed reply, and thank you for the follow-up comments. I see the issue now, you are trying to use an InstanceProfile credential but not able to because of proxy configurations. Have you tried to set the instance metadata endpoint to the |
It looks like this issue hasn’t been active in longer than a week. In the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please add a comment to prevent automatic closure, or if the issue is already closed please feel free to reopen it. |
Hello, looks like java sdk doesn't support aws service authentication on a proxy. I have a proxy server with a iam role for s3 bucket access attached. When I use aws cli to access my s3 bucket via this proxy(HTTP_PROXY=http://proxy_host:proxy_port), it works. I don't have any credentials configured one the machine where I issue aws cli command. However, on same machine, using aws java sdk, I can't access s3 bucket via same proxy because aws java sdk requires a credentials. there doesn't seem to be any credential providers available for this scenario.
In a short:
The text was updated successfully, but these errors were encountered: