Ask Your Question
1

How do I load aws-sdk in the JS evaluator?

asked 2017-10-16 09:28:30 -0600

vasilis gravatar image

updated 2017-10-16 10:30:06 -0600

metadaddy gravatar image

I'm trying to load the browserified version and followed Calling External Libraries from the JavaScript Evaluator, but i can't get it the library to load.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2017-10-16 09:30:54 -0600

vasilis gravatar image

updated 2017-10-16 10:30:21 -0600

metadaddy gravatar image

Solved by mocking the windowobject and then loading the browser version (aws-sdk-2.133.0.min.js) found at https://github.com/aws/aws-sdk-js

The work-around is the following piece of code:

var window = {};

load('file:///var/sdc/aws-sdk-2.133.0.min.js');

var AWS = window.AWS;

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2017-10-16 09:28:30 -0600

Seen: 193 times

Last updated: Oct 16 '17