JSPM

cloudformation-circleci-npm-lambda

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q20712F
  • License MIT

AWS Lambda handler for managing CircleCI AWS credentials

Package Exports

  • cloudformation-circleci-npm-lambda

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (cloudformation-circleci-npm-lambda) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

cloudformation-circleci-npm-lambda Build Status

AWS Lambda handler for managing CircleCI AWS credentials

Install

$ npm install --save cloudformation-circleci-npm-lambda

Usage

var CircleHandler = require('cloudformation-circleci-npm-lambda')

const credentialsHandler = CircleHandler(function getToken () {
  return Promise.resolve('my-npm-token')
})

exports.handler = function handler (event, context, callback) {
  npmHandler(event, context)
    .then(() => callback(null))
    .catch((err) => callback(err))
}

The returned handler receives event data from CloudFormation and installs an NPM_TOKEN environment variable on CircleCI. You are responsible for calling the handler's callback and triggering the completion of the Lambda execution. This allows you to chain other handlers into the same run.

License

MIT © Ben Drucker