0.0.2 • Published 5 years ago

sls-aws-apikey-output-plugin v0.0.2

Weekly downloads
3
License
ISC
Repository
github
Last release
5 years ago

Serverless AWS Apikey Output Plugin

This plugin outputs AWS API Gateway Keys into a JSON file. Remember to keep your API Keys secure!

NOTE: This Plugin is still Work In Progress (WIP)

Installation

Install with npm:

npm install --save-dev sls-aws-apikey-output-plugin

And then add the plugin to your serverless.yml file:

plugins:
  - sls-aws-apikey-output-plugin

Configuration

custom:
  apikeyoutput:
    file: apikey.json

Only JSON is supported for now

JSON Output

{
  "keys": [
    {
      "id": "API_KEY_ID",
      "value": "API_KEY",
      "name": "API_KEY_NAME",
      "enabled": true,
      "createdDate": "CREATED_DATE",
      "lastUpdatedDate": "LAST_UPDATED_DATE",
      "stageKeys": ["STAGEKEY1", "STATEKEY2"]
    }
  ]
}

Contribute

All PRs and Feedback are welcome