I understand the issue. Now ip-ranges.json is returning more than 50 ranges with CLOUDFRONT value. On the other hand some of them has GLOBAL region value while some of them are bound to specific regions. It was not like before and there is no documentation regarding this situation. I wonder what regional Cloudfront IP range means.

Maybe you can workaround the problem with modifying the script and creating two security groups. (On with 50 rules and second with remaining ones) Then you can add these two groups into ELB.

Software Development Manager @ebay, and Founder of @instelacom. Author of Building Serverless Architectures and AWS Certified Solutions Architect.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store