lib/aws_recon/collectors/s3.rb in aws_recon-0.5.12 vs lib/aws_recon/collectors/s3.rb in aws_recon-0.5.13
- old
+ new
@@ -35,9 +35,10 @@
# bucket parameter to the same region. (https://docs.aws.amazon.com/general/latest/gr/s3.html)
client = if location.empty?
struct.location = 'us-east-1'
@client
else
+ location = 'eu-west-1' if location == 'EU'
struct.location = location
Aws::S3::Client.new({ region: location })
end
operations = [