Skip to content

Instantly share code, notes, and snippets.

@aws-scripting-guy
Created April 3, 2016 21:08
Show Gist options
  • Save aws-scripting-guy/4728e95a094dc1b471060d5b8c7d79f6 to your computer and use it in GitHub Desktop.
Save aws-scripting-guy/4728e95a094dc1b471060d5b8c7d79f6 to your computer and use it in GitHub Desktop.
boto3 set HTTPS_PROXY environment variable directly in python script
# 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