appoxy / aws

Amazon Web Services (AWS) Ruby Gem

Home Page:https://rubygems.org/gems/aws

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using aws gem behind proxy server

mfojtik opened this issue · comments

Hi,

I just trying to get AWS working on 'proxied' environment. Is there any setting I can fiddle in order to use a proxy server for EC2 connections, or it's something which needs to be fixed/patched in http_connection library?

I thought that setting 'https_proxy' will get this work but unfortunately it seems like it's totally ignored.

Any clue about this?

-- Michal

I believe that global proxy settings could help you

they are unfortunately not helping, I tried HTTP_PROXY, HTTPS_PROXY and lowercase variants.

Quoting net/http library which http_connection use for doing HTTP requests:

Note that net/http never rely on HTTP_PROXY environment variable. If you want to use proxy, set it explicitly.

I have working patch for http_connection to enable support for proxy server. I'll sent pull request in few minutes.