@salecycle/aws-api-gateway-fetch
provides easy authed access to aws apigateway from node
Last updated a year ago by stevejhiggs_salecycle .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @salecycle/aws-api-gateway-fetch 
SYNC missed versions from official npm registry.

aws-api-gateway-fetch

An npm library wraps the signature generation parts of calling an aws api gateway, allowing us to treat it like any other fetch.

Usage

const gateWayFetch = require('@salecycle/aws-api-gateway-fetch');
const result = await gateWayFetch.apiGatewayFetch(
  'http://targeturl,
    {
      accessKeyId: 'AWS_ACCESS_KEY_ID,
      region: 'AWS_REGION',
      secretAccessKey: 'AWS_SECRET_ACCESS_KEY',
      sessionToken: 'OPTIONAL_SECURITY_TOKEN_NEEDED_IF_A_TEMPORARY_KEY'
    }
);

apart from the call to the inital method everything else will work like a normal fetch

Development

built with

  • nodejs
  • typescript

non local requirements

  • yarn - brew install yarn

running locally

  • yarn - install packages
  • yarn build build the js outputs from the typescript inputs
  • yarn link It's a library so you will need to link it to something that uses it, but you need to link the js version, not the typescript version

Current Tags

  • 1.0.4                                ...           latest (a year ago)

5 Versions

  • 1.0.4                                ...           a year ago
  • 1.0.3                                ...           a year ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
  • 0.1.0                                ...           2 years ago
Downloads
Today 0
This Week 0
This Month 6
Last Day 0
Last Week 6
Last Month 9
Dependencies (2)
Dev Dependencies (4)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |