in netbench-orchestrator/src/ssm_utils/netbench_driver/s2n_quic_dc_driver.rs [89:112]
fn local_upload_source_to_s3(
local_path_to_proj: &Path,
proj_name: &str,
unique_id: &str,
config: &OrchestratorConfig,
) {
let mut local_to_s3_cmd = Command::new("aws");
local_to_s3_cmd.args(["s3", "sync"]).stdout(Stdio::null());
local_to_s3_cmd
.arg(format!(
"{}/{}",
local_path_to_proj.to_str().unwrap(),
proj_name
))
.arg(format!(
"{}/{}/",
config.s3_private_path(unique_id,),
proj_name
));
local_to_s3_cmd.args(["--exclude", "target/*", "--exclude", ".git/*"]);
debug!("{:?}", local_to_s3_cmd);
let status = local_to_s3_cmd.status().unwrap();
assert!(status.success(), "aws sync command failed");
}