Created
April 3, 2016 21:08
-
-
Save aws-scripting-guy/4728e95a094dc1b471060d5b8c7d79f6 to your computer and use it in GitHub Desktop.
boto3 set HTTPS_PROXY environment variable directly in python script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Works both with IDLE and PTVS for Visual Studio | |
import os | |
import boto3 | |
os.environ['HTTPS_PROXY'] = '<proxyurl>:<port>' | |
s3 = boto3.client('s3') | |
s3.list_buckets() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment