diff --git a/lib/plugins/aws/provider/awsProvider.js b/lib/plugins/aws/provider/awsProvider.js index 51d4d9971..ee21dfd8b 100644 --- a/lib/plugins/aws/provider/awsProvider.js +++ b/lib/plugins/aws/provider/awsProvider.js @@ -127,9 +127,7 @@ class AwsProvider { || process.env.https_proxy; if (proxy) { - const proxyOptions = url.parse(proxy); - proxyOptions.secureEndpoint = true; - AWS.config.httpOptions.agent = new HttpsProxyAgent(proxyOptions); + AWS.config.httpOptions.agent = new HttpsProxyAgent(url.parse(proxy)); } const ca = process.env.ca