Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e2df96b

Browse filesBrowse files
committed
Merge pull request #937 from pwagener/master
Fix #490: Connection timed out after 120000ms in function deployment
2 parents bd0482f + 9750d82 commit e2df96b
Copy full SHA for e2df96b

File tree

Expand file treeCollapse file tree

1 file changed

+6
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-0
lines changed
Open diff view settings
Collapse file

‎lib/ProviderAws.js‎

Copy file name to clipboardExpand all lines: lib/ProviderAws.js
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ module.exports = function(S) {
3232
AWS.config.httpOptions.agent = new httpsProxyAgent(proxyOptions);
3333
}
3434

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+
3541
// Detect Profile Prefix. Useful for multiple projects (e.g., myproject_prod)
3642
this._config.profilePrefix = process.env['AWS_PROFILE_PREFIX'] ? process.env['AWS_PROFILE_PREFIX'] : null;
3743
if (this._config.profilePrefix && this._config.profilePrefix.charAt(this._config.profilePrefix.length - 1) !== '_') {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.