Skip to content

Commit 9516edd

Browse files
committed
Remove AWS-SDK dependency
1 parent e1fccda commit 9516edd

File tree

4 files changed

+1
-33
lines changed

4 files changed

+1
-33
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,7 @@ The `context` object has been sampled from what's visible when running an actual
194194
They may change the internals of this object, and Lambda-local does not guarantee that this will always be up-to-date with the actual context object.
195195

196196
### AWS-SDK
197-
Since the Amazon Lambda can load the AWS-SDK npm without installation, Lambda-local has also packaged AWS-SDK in its dependencies.
198-
If you want to use this, please use the `-p` or `-P` options (or their API counterpart) with the aws credentials file. More infos here:
199-
http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html#cli-config-files
197+
As of version 2.0.0, lambda-local no longer packages AWS-SDK in its dependencies. To run a function that makes use of this module, make sure to install it as a dependency in your project.
200198

201199
## Other links
202200

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
"node": ">=6"
3737
},
3838
"dependencies": {
39-
"aws-sdk": "^2.689.0",
4039
"commander": "^6.1.0",
4140
"dotenv": "^8.2.0",
4241
"winston": "^3.2.1"

test/functs/test-func-aws-sdk.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

test/test.js

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -268,26 +268,6 @@ describe("- Testing lambdalocal.js", function () {
268268
});
269269
});
270270
});
271-
describe("* Test aws-sdk import", function () {
272-
it("should return an aws-sdk version >= 2", function (cb) {
273-
this.timeout(4000);
274-
var lambdalocal = require(lambdalocal_path);
275-
lambdalocal.setLogger(winston);
276-
var lambdaFunc = require("./functs/test-func-aws-sdk.js");
277-
lambdalocal.execute({
278-
event: require(path.join(__dirname, "./events/test-event.js")),
279-
lambdaFunc: lambdaFunc,
280-
lambdaHandler: functionName,
281-
callbackWaitsForEmptyEventLoop: false,
282-
timeoutMs: 1000,
283-
callback: function (_err, _done) {
284-
assert.ok(parseInt(_done.version) >= 2);
285-
cb();
286-
},
287-
verboseLevel: 1
288-
});
289-
});
290-
});
291271
describe("* Return Error object", function () {
292272
it("should convert it to correct JSON format", function (cb) {
293273
var lambdalocal = require(lambdalocal_path);

0 commit comments

Comments
 (0)