Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d3553a commit 9750d82Copy full SHA for 9750d82
lib/ProviderAws.js
@@ -32,6 +32,12 @@ module.exports = function(S) {
32
AWS.config.httpOptions.agent = new httpsProxyAgent(proxyOptions);
33
}
34
35
+ // Configure the AWS Client timeout (Optional). The default is 120000 (2 minutes)
36
+ let timeout = process.env.AWS_CLIENT_TIMEOUT || process.env.aws_client_timeout;
37
+ if (timeout) {
38
+ AWS.config.httpOptions.timeout = parseInt(timeout, 10);
39
+ }
40
+
41
// Detect Profile Prefix. Useful for multiple projects (e.g., myproject_prod)
42
this._config.profilePrefix = process.env['AWS_PROFILE_PREFIX'] ? process.env['AWS_PROFILE_PREFIX'] : null;
43
if (this._config.profilePrefix && this._config.profilePrefix.charAt(this._config.profilePrefix.length - 1) !== '_') {
0 commit comments