Infinite loop when the bucket doesn't exists
S3 exporter loop infinitely when the bucket didn't exists.
This is due to the AWS code that returns true
on HasMorePages()
even if the bucket didn't exists because firstPage
is true
at the beginning.
We should probably check the return error on https://gitlab.com/radiofrance/s3-exporter/-/blob/master/s3.go?ref_type=heads#L49 and if the bucket didn't exist, break the current loop.