JSPM

@redcordlau/serverless-associate-waf

1.3.0-beta
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q45161F
  • License MIT

Associate a regional WAF with the AWS API Gateway used by your Serverless stack.

Package Exports

  • @redcordlau/serverless-associate-waf

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@redcordlau/serverless-associate-waf) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

serverless-associate-waf

NPM Downloads Build Status Coverage Status

Associate a regional WAF with the AWS API Gateway used by your Serverless stack.

Install

npm install serverless-associate-waf --save-dev

Configuration

Add the plugin to your serverless.yml:

plugins:
  - serverless-associate-waf

Associating a Regional WAF with the API Gateway

Add your custom configuration:

custom:
  associateWaf:
    name: myRegionalWaf
    version: Regional #(optional) Regional | V2
Property Required Type Default Description
name true string The name of the regional WAF to associate the API Gateway with
version false string Regional The AWS WAF version to be used

Disassociating a Regional WAF from the API Gateway

Remove the name property from your custom configuration but keep the version if specified, and then deploy the application. The plugin must stay in the plugins list of serverless.yml in order for the WAF to be disassociated.

Usage

Configuration of your serverless.yml is all you need.

There are no custom commands, just run: sls deploy