- Newest
- Most votes
- Most comments
Yes both AWS Network Firewall and AWS WAF offer functionality to reference external block lists of IP addresses for blocking traffic. You can leverage these capabilities to enhance your security posture by blocking known malicious IP addresses and mitigating threats to your applications and network infrastructure. You can refer to this AWS documentation for in depth about this :-https://aws.amazon.com/waf/faqs/
Hope it clarifies and if does I would appreciate answer to be accepted so that community can benefit for clarity, thanks ;)
Neither AWS Network Firewall nor AWS WAF natively supports consuming an external IP block list directly from a customer-managed source such as an S3 text file. However, both services provide APIs that allow you to programmatically update rule group configurations with the IP addresses you want to allow or block.
A common approach is to automate this with the following pattern:
- Amazon EventBridge — A scheduled rule triggers on a defined interval (e.g., every 15 minutes or hourly)
- AWS Lambda — The EventBridge rule invokes a Lambda function that:
- Downloads the current IP list from S3 (or any external source)
- Transforms the list into the correct format for the target service
- Calls the appropriate API to apply the updates
For AWS WAF, you can use IP Sets which provide a dedicated resource for managing lists of IP addresses. The Lambda function would call UpdateIPSet to apply the changes. Additionally, AWS provides the AWS WAF Security Automations solution template which includes pre-built automation for IP list management and other common WAF use cases.
For AWS Network Firewall, the IP addresses would be managed through IP Set References in a Suricata-compatible rule group or via rule variables, updated through the UpdateRuleGroup API. Example automation patterns are available in the AWS Network Firewall Automation Examples repository on GitHub.
This pattern gives you full control over the update frequency and transformation logic while keeping the IP list management in your hands.
Relevant content
- asked 3 years ago
- asked 2 years ago

Thanks for replying, I clicked on the link and went through the documentation but I couldn't find a FAQ question that referred to referencing an external block list. Can you list the question in the faq that you were referring to. Also is there a similar document to refer to for the AWS Network Firewall (since the faq sent was for the waf)
In this AWS documentation i think you will find it here :- https://docs.aws.amazon.com/network-firewall/latest/developerguide/what-is-aws-network-firewall.html if not i advise you to contact AWS support for a guide