New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

serverless-easy-usage-plan-key

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

serverless-easy-usage-plan-key

Helps generate UsagePlanKey using ApiKeyName.

latest
Source
npmnpm
Version
0.0.24
Version published
Maintainers
1
Created
Source

serverless-easy-usage-plan-key

If you already have an api key when you use the cloudformation resource to create an api usage plan, you can create a usage plan key with the api key name and associate it with the api usage plan.

Install

install package

$ npm i serverless-easy-usage-plan-key --save

add the plugin to serverless.yml

# serverless.yml

plugins:
  - serverless-easy-usage-plan-key

Setup

UsagePlanKey:
    Type: AWS::ApiGateway::UsagePlanKey
    Properties:
        KeyName: my-api-key-name
        KeyType: API_KEY

If you have a resource of type AWS::ApiGateway::UsagePlanKey in Resources in the Serverless template, look for {resourceName}.Properties.KeyName to look up the API key information. If API key exists, get the API key id and put the value in {resourceName}.Properties.KeyId.

Keywords

serverless

FAQs

Package last updated on 26 Nov 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts