aws-samples / service-screener-v2

A tool for customers to evaluate their AWS service configurations based on AWS and community best practices and receive recommendations on potential improvements.
Apache License 2.0
160 stars 44 forks source link

IndexError: list index out of range #114

Closed sarika-subram closed 3 months ago

sarika-subram commented 3 months ago

Describe the bug

  File "/home/ec2-user/environment/service-screener-v2/services/Evaluator.py", line 46, in run
    getattr(self, method)()
  File "/home/ec2-user/environment/service-screener-v2/services/s3/drivers/S3Bucket.py", line 85, in _checkBucketReplication
    if source_loc.get('LocationConstraint') != target_loc.split('.')[1]:

To Reproduce Steps to reproduce the behavior:

  1. Set up S3 bucket with cross-region replication configured
  2. Clone Repo
  3. Setup Alias
  4. Run command

Full commands used to reproduce this bug

screener --regions ALL --services rs3 Expected behavior Run with no errors

Screenshots If applicable, add screenshots to help explain your problem.

AWS CloudShell (please complete the following information):

Execution Environment (PLEASE FILL THIS UP IF YOU ARE NOT RUNNING THIS IN AWS CLOUDSHELL):

Additional context Add any other context about the problem here.