sls-aws-apikey-output-plugin

0.0.2 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i sls-aws-apikey-output-plugin

Weekly Downloads

1

Version

0.0.2

License

ISC

Unpacked Size

3.15 kB

Total Files

3

Last publish

Collaborators

  • johnervan