Ask Your Question
1

How can I use the Javascript AWS SDK from a Javascript processor stage?

asked 2017-10-23 09:52:09 -0500

jeff gravatar image

updated 2017-10-23 09:53:21 -0500

I have tried the browserified version of the SDK and using the information from this blog post, but can't get it to work.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2017-10-23 09:52:30 -0500

jeff gravatar image

You need to mock the window object, then load the script. Ex:

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-23 09:52:09 -0500

Seen: 334 times

Last updated: Oct 23 '17