Skip to content

“aws-sdk-light” package bundled into a file for use as an “IncludeURL” resource in Apigee's JavaScript policy.

Notifications You must be signed in to change notification settings

srikanthmanda/aws-sdk-light-apigee-bundle

Repository files navigation

AWS SDK Light Apigee Bundle

aws-sdk-light package bundled into a file for use as an IncludeURL resource in Apigee's JavaScript policy.

aws-sdk-light package: https://npmjs.com/package/aws-sdk-light

Why?

To be able to work with your source code directly in any Apigee proxy JavaScript policy. Using the aws-sdk-light package as an IncludeURL dependency, policy code does not have to be bundled with Webpack.

Note: All the restrictions of Apigee's JavaScript policy still apply.

Usage

You may use the release/aws-sdk-light-apigee.bundle.js file of this repo following steps 3 and 4 below.

Or you may generate it from the source following all of the below steps.

  1. Clone this repo: git clone https://github.com/srikanthmanda/aws-sdk-light-apigee-bundle.git
  2. Install the packages: npm install
  3. Run the package.json script to bundle the code with Webpack: npm run shipit
  4. Add (or upload) the aws-sdk-light-apigee.bundle.js file from the release directory to the Apigee proxy as a jsc resource.
  5. Include the bundle file in the proxy's JavaScript policies calling the AWS Lambda and STS services, before the ResourceURL property as:
    <IncludeURL>jsc://aws-sdk-light-apigee.bundle.js</IncludeURL>

TODO

  • Find console polyfill, as the Rhino JavaScript engine Apigee uses has only print().

Resources

About

“aws-sdk-light” package bundled into a file for use as an “IncludeURL” resource in Apigee's JavaScript policy.

Topics

Resources

Stars

Watchers

Forks