Skip to content
This repository was archived by the owner on Jul 26, 2022. It is now read-only.

Commit c9d7785

Browse files
authored
feat: Add HTTP Proxy support to AWS SDK (#601)
* Pass proxy to AWS SDK * correct comparaison * update to coding conventions * remove/add spaces code convetion
1 parent 972f8a9 commit c9d7785

File tree

3 files changed

+605
-24
lines changed

3 files changed

+605
-24
lines changed

config/aws-config.js

+9
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@
44
const AWS = require('aws-sdk')
55
const clonedeep = require('lodash.clonedeep')
66
const merge = require('lodash.merge')
7+
const proxy = require('proxy-agent')
8+
9+
if (process.env.HTTP_PROXY !== '') {
10+
AWS.config.update({
11+
httpOptions: {
12+
agent: proxy(process.env.HTTP_PROXY)
13+
}
14+
})
15+
}
716

817
const localstack = process.env.LOCALSTACK || 0
918

0 commit comments

Comments
 (0)