{"action":"opened","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3650","repository_url":"https://api.github.com/repos/ansible/ansible-modules-core","labels_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3650/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3650/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3650/events","html_url":"https://github.com/ansible/ansible-modules-core/issues/3650","id":154807739,"number":3650,"title":"s3 fails when behind a proxy even though proxy environment variables set","user":{"login":"dwcramer","id":886685,"avatar_url":"https://avatars.githubusercontent.com/u/886685?v=3","gravatar_id":"","url":"https://api.github.com/users/dwcramer","html_url":"https://github.com/dwcramer","followers_url":"https://api.github.com/users/dwcramer/followers","following_url":"https://api.github.com/users/dwcramer/following{/other_user}","gists_url":"https://api.github.com/users/dwcramer/gists{/gist_id}","starred_url":"https://api.github.com/users/dwcramer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwcramer/subscriptions","organizations_url":"https://api.github.com/users/dwcramer/orgs","repos_url":"https://api.github.com/users/dwcramer/repos","events_url":"https://api.github.com/users/dwcramer/events{/privacy}","received_events_url":"https://api.github.com/users/dwcramer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-13T21:54:22Z","updated_at":"2016-05-13T21:54:22Z","closed_at":null,"body":"##### ISSUE TYPE\r\n - Bug Report\r\n\r\n##### COMPONENT NAME\r\ns3 module\r\n\r\n##### ANSIBLE VERSION\r\n```\r\nansible 2.0.1.0\r\n  config file = /Users/davcrame/.ansible.cfg\r\n  configured module search path = Default w/o overrides\r\n```\r\n\r\n##### CONFIGURATION\r\nNothing special:\r\n```\r\n[defaults]\r\nhost_key_checking = False\r\nlog_path=~/.ansible/ansible.log\r\n\r\n[ssh_connection]\r\ncontrol_path = %(directory)s/%%h-%%r(v\r\n```\r\n\r\n##### OS / ENVIRONMENT\r\n\r\nControl machine: Mac OS X 10.11.4\r\nTarget machines: Ubuntu 14.04\r\n\r\n##### SUMMARY\r\n\r\nWhen targeting machines in a lab that are behind a proxy, the s3 module fails. In the playbook I have set the proxy environment variables:\r\n\r\n```\r\n  environment:\r\n    http_proxy: http://proxy.mydomain.com:80/\r\n    https_proxy: http://proxy.esl.mydomain.com:80/\r\n```\r\n\r\nOther modules like apt and pip are able to download content via the proxy.\r\n\r\n```\r\nfailed: [10.89.38.xxx] => (item={u'dest': u'truststore.jks', u'src': u'truststore.jks'}) => {\"failed\": true, \"item\": {\"dest\": \"truststore.jks\", \"src\": \"truststore.jks\"}, \"msg\": \"Source bucket cannot be found\"}\r\n```\r\n##### STEPS TO REPRODUCE\r\n\r\nUse the s3 module on a target machine that is behind a proxy and does not have access to the aws endpoints directly.\r\n\r\n##### EXPECTED RESULTS\r\nI expect the s3 module to be able to download content from my s3 buckets.\r\n\r\n##### ACTUAL RESULTS\r\nThe playbook fails with an error like: \r\n```\r\nfailed: [10.89.38.xxx] => (item={u'dest': u'truststore.jks', u'src': u'truststore.jks'}) => {\"failed\": true, \"item\": {\"dest\": \"truststore.jks\", \"src\": \"truststore.jks\"}, \"msg\": \"Source bucket cannot be found\"}\r\n```\r\n"}}