AWS JS SDK V3 (Lambda module) - Unable to connect to instance metadata service
问题 I was previously using the all-in-one aws-sdk npm module (https://www.npmjs.com/package/aws-sdk) to invoke an AWS Lambda function, and for that the following code had been working well: //Some code to get "credentials" ... const AWS = require('aws-sdk'); const lambda = new AWS.Lambda({ accessKeyId: credentials.accessKeyId, secretAccessKey: credentials.secretAccessKey, region: Config.REGION }); lambda.invoke(pullParams, (err, data) => //I would do something with data ); ... Now, taking a cue