amazon-archives / aws-waf-sample

This repository contains example scripts and sets of rules for the AWS WAF service. Please be aware that the applicability of these examples to specific workloads may vary.
MIT No Attribution
511 stars 225 forks source link

Allow maxDescriptorsPerIpSet and maxDescriptorsPerIpSetUpdate to be configured as job arguments #11

Open ziggythehamster opened 8 years ago

ziggythehamster commented 8 years ago

This PR adds maxDescriptorsPerIpSet and maxDescriptorsPerIpSetUpdate as arguments, so users can tune this value without having to maintain their own separate Lambda function. Right now, the limit is 1,000, which is the default, but if that becomes tunable via a limit increase request in the future, users will need to be able to increase these numbers.

I've also added the ability to npm run build to generate lambda.zip, to make it easier to maintain. You'll need the 7-Zip CLI in your PATH (brew install p7zip, choco install 7zip.commandline, apt-get install p7zip, etc.).

If you require a contributor agreement to be signed, let me know and I'll sign that. Otherwise, I disclaim all copyright claims to this contribution.