Skip to content

Commit

Permalink
aws cli supports AWS_ENDPOINT_URL var
Browse files Browse the repository at this point in the history
  • Loading branch information
problame committed Dec 18, 2024
1 parent ccf382a commit 5d9168a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions compute_tools/src/bin/fast_import/aws_s3_sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ use super::s3_uri::S3Uri;

pub(crate) async fn sync(local: &Utf8Path, remote: &S3Uri) -> anyhow::Result<()> {
let mut builder = tokio::process::Command::new("aws");
// s5cmd uses an old version of aws-sdk-go v1, hence doesn't support AWS_ENDPOINT_URL
if let Some(val) = std::env::var_os("AWS_ENDPOINT_URL") {
builder.arg("--endpoint-url").arg(val);
}
builder
.arg("s3")
.arg("sync")
Expand Down

0 comments on commit 5d9168a

Please sign in to comment.