Botocore: Proxy support?

Created on 26 May 2015  路  9Comments  路  Source: boto/botocore

Will there be a way to set the proxy and proxy authentication through the code any time soon? Maybe something like "set_proxy(proxy_server=proxy_server, proxy_port=proxy_port, proxy_user=proxy_user, proxy_password=proxy_password)"

closed-for-staleness feature-request

Most helpful comment

The problem is that this sets the proxy for the whole process which can interfere with other HTTP requests.

All 9 comments

Marking as feature request. We will consider adding support.

dirty but

import os
os.environ['http_proxy'] = "http://user:password@server:port"

# prior to
import boto3
boto3.Session()

works for me

The problem is that this sets the proxy for the whole process which can interfere with other HTTP requests.

This is a problem for our use case, as setting the http proxy means we can't use our pip index.

This PR might resolve the issue : https://github.com/boto/botocore/pull/1228
Similar discussion : https://github.com/boto/boto3/issues/338

@PVSec - Does the solution provided in this PR resolve your issue ?

Link to the boto3 documentation on use of proxy:
https://botocore.amazonaws.com/v1/documentation/api/latest/reference/config.html

This is the stack overflow link which explains how to use proxy for boto3:
https://stackoverflow.com/questions/33480108/how-do-you-use-an-http-https-proxy-with-boto3

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.

Looks good

Greetings! It looks like this issue hasn鈥檛 been active in longer than one year. We encourage you to check if this is still an issue in the latest release. Because it has been longer than one year since the last update on this, and in the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please feel free to provide a comment to prevent automatic closure, or if the issue is already closed, please feel free to reopen it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

freddrake picture freddrake  路  5Comments

mjonescase picture mjonescase  路  3Comments

xennygrimmato picture xennygrimmato  路  4Comments

eode picture eode  路  5Comments

ThisGuyCodes picture ThisGuyCodes  路  5Comments