-
Notifications
You must be signed in to change notification settings - Fork 870
Description
I want AWS .NET SDK to fetch proxy settings from environment variables http_proxy
and https_proxy
in the same way as AWS CLI does, see https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-proxy.html.
Is your Feature Request related to a problem?
I'm always frustrated that I don't get consistent behaviour of AWS toolchain in proxy handling, esp. proxies which require user/password authorization. Currently I need to specify https_proxy
variable to get AWS CLI working, and then I need to craft an app.config
file for every .NET application as described in https://docs.aws.amazon.com/sdk-for-net/v3/developer-guide/net-dg-config-ref.html#net-dg-config-ref-elements-proxy .
Situation gets even worse when I need to distribute my apps to other users or organizations, which need to learn the AWS-specific format of the aws
section in the app.config
and adjust it to their conditions. A simple and straight environment variable would solve the issue.
Here is the way I have discovered the http_proxy
and https_proxy
env. variables don't work with AWS .NET SDK:
- installed a Telerik Fiddler Classic on my machine
- enabled the Fiddler's rule
Require Proxy Authentication
(implies user=1, password=1) - set the
https_proxy=http://1:[email protected]:8888
My .NET Framework-based (not .NET Core) app didn't work (AWS .NET SDK 3.7.5.9).
When I created an app.config
following https://docs.aws.amazon.com/sdk-for-net/v3/developer-guide/net-dg-config-ref.html#net-dg-config-ref-elements-proxy it did work, but I don't think the config file should be necessary.
This is a 🚀 Feature Request