johnweland / ipblock-microservice

A "cloud native" service in AWS that will check if an IP address exists in a Firehol blocklist
https://johnweland.github.io/ipblock-microservice
MIT License
0 stars 0 forks source link

Add DynamoDB support #15

Open johnweland opened 3 years ago

johnweland commented 3 years ago

Add AWS DynamoDB support.

Schedule a function to loop over the (Firehol blocklist-ipsets)[https://github.com/firehol/blocklist-ipsets], extract the ip addresses as we are already doing in the current ipcheck function. Then compare those IP addresses and their corresponding file as key:value pairs in DynamoDB.

Update ipcheck function to query DynamoDB to check if the IP exists there rather than the Firehol repository directly.

johnweland commented 3 years ago