-
Hello I would like to use MinIO as endpoint for the AWS Object Store and in order to do that I am using the let s3 = match AmazonS3Builder::from_env()
.with_bucket_name(&bucket_name)
.with_region(region)
.build()
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
The error would suggest it is failing to find credentials and falling back to trying to get them from a metadata endpoint. Are you sure the environment variables are reaching the process? Perhaps you could try setting the credentials explicitly e.g. with https://docs.rs/object_store/latest/object_store/aws/struct.AmazonS3Builder.html#method.with_access_key_id |
Beta Was this translation helpful? Give feedback.
-
You are right, I was not exposing the environment variables as I thought I was doing 🦀 sorry for wasting your time and thank you for your help |
Beta Was this translation helpful? Give feedback.
The error would suggest it is failing to find credentials and falling back to trying to get them from a metadata endpoint. Are you sure the environment variables are reaching the process? Perhaps you could try setting the credentials explicitly e.g. with https://docs.rs/object_store/latest/object_store/aws/struct.AmazonS3Builder.html#method.with_access_key_id