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)
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
custom:
apikeyoutput:
file: apikey.json
Only JSON is supported for now
{
"keys": [
{
"id": "API_KEY_ID",
"value": "API_KEY",
"name": "API_KEY_NAME",
"enabled": true,
"createdDate": "CREATED_DATE",
"lastUpdatedDate": "LAST_UPDATED_DATE",
"stageKeys": ["STAGEKEY1", "STATEKEY2"]
}
]
}
All PRs and Feedback are welcome