From 5c05e247056607fe953861dca2239906cfb5a06d Mon Sep 17 00:00:00 2001 From: Davide Cavalca Date: Thu, 5 Oct 2023 15:27:30 -0700 Subject: [PATCH] resctl-bench: update S3 bucket in the lamba --- resctl-bench/src/lambda.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resctl-bench/src/lambda.rs b/resctl-bench/src/lambda.rs index 06c3d47..7a6f639 100644 --- a/resctl-bench/src/lambda.rs +++ b/resctl-bench/src/lambda.rs @@ -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"); @@ -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 )) }