Skip to content

Commit

Permalink
resctl-bench: update S3 bucket in the lamba
Browse files Browse the repository at this point in the history
  • Loading branch information
davide125 committed Oct 5, 2023
1 parent da9cb47 commit 5c05e24
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions resctl-bench/src/lambda.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use crate::job::{FormatOpts, JobCtxs};
// and isolated - each concurrent instance runs on its own environment.
const RESULT_PATH: &'static str = "/tmp/result.json.gz";
const IOCOST_BUCKET: &'static str = "iocost-submit";
const IOCOST_BUCKET_REGION: &'static str = "eu-west-1";
const IOCOST_BUCKET_REGION: &'static str = "us-east-1";

pub fn init_lambda() {
let executable_path = std::env::current_exe().expect("Failed to get executable path");
Expand Down Expand Up @@ -139,8 +139,8 @@ impl LambdaHelper {
.await?;

Ok(format!(
"https://{}.s3.{}.amazonaws.com/{}",
IOCOST_BUCKET, IOCOST_BUCKET_REGION, object_name
"https://{}-{}.s3.{}.amazonaws.com/{}",
IOCOST_BUCKET, IOCOST_BUCKET_REGION, IOCOST_BUCKET_REGION, object_name
))
}

Expand Down

0 comments on commit 5c05e24

Please sign in to comment.