Is there a way to set the ip conditions of AWS WAF all that once by uploading a list?


You can restrict access to a resource like cloudfront by using AWS WAF. You can create an ip condition that can hold up to 10000 ip addresses or ip ranges. But these ranges need to be entered manually. I have a list of 200+ ip ranges that all need to be blocked. Is there a way to upload these ip ranges all at once? Perhaps via AWS CLI? Entering all those ip ranges manually would take a long time.

asked a year ago263 views
1 Answer


You could read 2 blogs like

How can I create, list, get, or update AWS WAFV2 IPSets using the AWS CLI?

Automatically update AWS WAF IP sets with AWS IP ranges

both them you might guide you to update IP Sets.

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions