Package Information
Downloads: 205 weekly / 290 monthly
Latest Version: 1.0.2
Author: MBLife
Available Nodes
Documentation
n8n-nodes-aws-waf
This is an n8n community node for AWS WAF (Web Application Firewall). It allows you to manage IP Sets in AWS WAF, specifically for adding and removing IP addresses from blacklists.
Features
- Add IP to Blacklist: Add one or more IP addresses to a WAF IP Set
- Remove IP from Blacklist: Remove one or more IP addresses from a WAF IP Set
- List IP Sets: List all IP Sets in your WAF configuration
- Get IP Set: Get details of a specific IP Set including all addresses
Installation
In n8n
- Go to Settings > Community Nodes
- Select Install
- Enter
n8n-nodes-aws-waf - Click Install
Manual Installation
cd ~/.n8n/nodes
npm install n8n-nodes-aws-waf
Credentials
You need to configure AWS credentials with the following permissions:
wafv2:GetIPSetwafv2:UpdateIPSetwafv2:ListIPSets
Required credential fields:
| Field | Description |
|---|---|
| Region | AWS region (e.g., us-east-1) or "Global" for CloudFront |
| Access Key ID | Your AWS Access Key ID |
| Secret Access Key | Your AWS Secret Access Key |
Usage
Add IP to Blacklist
- Select Add IP to Blacklist operation
- Choose the Scope (Regional for ALB/API Gateway, or CloudFront for global)
- Enter the IP Set Name and IP Set ID
- Enter IP addresses in CIDR notation (e.g.,
192.168.1.1/32)- For single IPs, use
/32suffix - Separate multiple IPs with commas
- For single IPs, use
Remove IP from Blacklist
- Select Remove IP from Blacklist operation
- Enter the same details as above
- The specified IPs will be removed from the IP Set
Finding IP Set ID
You can find your IP Set ID by:
- Using the List IP Sets operation
- Or from the AWS Console: WAF & Shield > IP sets
Example Workflow
Webhook → AWS WAF (Add IP) → Slack Notification
This workflow can automatically block IPs detected by your security system.
Development
# Install dependencies
npm install
# Build
npm run build
# Development mode
npm run dev
License
MIT