AWS SDK Light
This package is primarily focused at enabling Apigee users to integrate with AWS services directly from a JavaScript Policy. However it can certainly be used by anyone.
Although there are already many great libraries that allow integration into AWS services (including the actual aws-sdk!) I found that the situation I was in did not allow me to use them 😭 😡.
Key things about why I made this:
- Javascript Policy is the only viable option for me
- The engine used is Rhino JavaScript engine 1.7.7.1
- There are limitations with the current JS version
- Methods cannot exceed 64kb - generated bytecode for method exceeds 64K limit
- ES2015 features and beyond are not supported (including Typed Array) - Rhino ES2015 Support
Installation
Available on npm
npm install aws-sdk-light
Overview
Importing
// import entire SDKvar awsSdkLight = ; // import single modulevar awsSdkLight = ;
Usage
var awsSdkLight = ; var options = accessKeyId: '<value>' secretAccessKey: '<value>' region: '<value>';var lambda = options; var params = FunctionName: 'hello-world' Payload: <string>;lambda;