sls-aws-apikey-output-plugin

Serverless Plugin for AWS API Gateway Api Key Output

Usage no npm install needed!

<script type="module">
  import slsAwsApikeyOutputPlugin from 'https://cdn.skypack.dev/sls-aws-apikey-output-plugin';
</script>

README

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