Skip to content
Associate a regional WAF with the AWS API Gateway used by your Serverless stack.
Branch: master
Clone or download
MikeSouza Release 1.1.0 (#5)
* Force publishing to public NPM registry

* Update jest to v24.3.0 to work with Node v11.11

* Separate unit tests and reporting of coverage

* Add publishing to NPM
Latest commit 9a16752 Mar 10, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
.editorconfig
.gitignore
.npmignore Integrate Travis CI and Coveralls Feb 24, 2019
.travis.yml
LICENSE Initial commit Feb 16, 2019
README.md
package-lock.json
package.json Release 1.1.0 (#5) Mar 10, 2019

README.md

serverless-associate-waf

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
Property Required Type Default Description
name true string The name of the regional WAF to associate the API Gateway with

Disassociating a Regional WAF from the API Gateway

Remove the associateWaf element from your custom configurtation and 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

You can’t perform that action at this time.