Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resctl-bench: update S3 bucket in the lamba #297

Merged
merged 1 commit into from
Oct 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading