diff --git a/object_store/src/aws/resolve.rs b/object_store/src/aws/resolve.rs index 12c9f26d220b..85919a3e22a7 100644 --- a/object_store/src/aws/resolve.rs +++ b/object_store/src/aws/resolve.rs @@ -51,7 +51,7 @@ impl From for crate::Error { pub async fn resolve_bucket_region(bucket: &str, client_options: &ClientOptions) -> Result { use reqwest::StatusCode; - let endpoint = format!("https://{}.s3.amazonaws.com", bucket); + let endpoint = format!("https://s3.amazonaws.com/{}/", bucket); let client = client_options.client()?;