UNPKG

@serverless-rewrite/serverless

Version:

Serverless Framework - Build web, mobile and IoT applications with serverless architectures using AWS Lambda, Azure Functions, Google CloudFunctions & more

12 lines (8 loc) 399 B
'use strict'; const metadataServicePrototype = require('aws-sdk/lib/metadata_service').prototype; const originalRequest = metadataServicePrototype.request; metadataServicePrototype.request = function (path, options, callback) { this.maxRetries = 0; if (!this.httpOptions.connectTimeout) this.httpOptions.connectTimeout = 1000; return originalRequest.call(this, path, options, callback); };