Closed dpmallinger closed 5 years ago
Hi,
We need to change this error message to just a info log. If the file does not exist, the solution should create a new one. Have you got a new file created?
Hello,
Just like @dpmallinger, I had the same error and no file was created. I had to create manually an empty file in s3. The error was then gone and the file contained a valid json. But no IPs are blocked.
Hello,
I had the same experience as @gxof. I had to create the file manually with { "block": {} } to get the code to run.
Got it. It's not the expected behavior. Will change this error message to log but also check why the file was not created accordingly.
We've just pushed a new version that fixes this. Added the following error handler for this case:
Many thanks
when the s3 bucket does not have a aws-waf-security-automations-current-blocked-ips.json file log-parser.py failes with:
[merge_current_blocked_requesters] Error merging data An error occurred (403) when calling the HeadObject operation: Forbidden