ribbybibby / s3_exporter

Exports Prometheus metrics about S3 buckets and objects
Apache License 2.0
105 stars 42 forks source link

MissingRegion: could not find region configuration #35

Closed ravi-visionet closed 2 years ago

ravi-visionet commented 3 years ago

Hi,

When I try to discover s3 buckets using "curl http://127.0.0.1:9340/discovery", getting below error.

Error

Could you please help here.

Note: I have permission to list s3 buckets using aws s3 ls.

ribbybibby commented 2 years ago

I missed this issue, apologies. You need to configure the AWS region. Try setting the AWS_REGION or AWS_DEFAULT_REGION environment variable.

ravi-visionet commented 2 years ago

I missed this issue, apologies. You need to configure the AWS region. Try setting the AWS_REGION or AWS_DEFAULT_REGION environment variable.

Thank you, the mentioned issue is resolved now.