Set your AWS credentials and run the following:
❯ pip install -r requirements.txt
❯ python s3_logs_detect_infinite_loops.py
--- LOGGING CONFIGURATIONS ---
BucketA --> BucketA
BucketB --> BucketC
BucketC --> BucketB
--- INFINITE LOOPS DETECTED ---
['BucketA']
['BucketB', 'BucketC']