From dc9152f1ae550f488f1d2c511c300722cbc03f7b Mon Sep 17 00:00:00 2001 From: Lucas Kent Date: Mon, 18 Mar 2024 18:08:31 +1100 Subject: [PATCH] write ssh instructions to stdout when creating cloud resources --- shotover-proxy/benches/windsock/cloud/mod.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/shotover-proxy/benches/windsock/cloud/mod.rs b/shotover-proxy/benches/windsock/cloud/mod.rs index 0a89f0b7f..a23f605f3 100644 --- a/shotover-proxy/benches/windsock/cloud/mod.rs +++ b/shotover-proxy/benches/windsock/cloud/mod.rs @@ -67,6 +67,22 @@ impl Cloud for AwsCloud { aws.create_bencher_instances(benches_will_run, 1), aws.create_shotover_instances(benches_will_run, required.shotover_instance_count) ); + + println!(); + println!("In order to investigate bench failures you may want to ssh into the instances:"); + for (i, docker) in docker.iter().enumerate() { + println!("Docker instance #{i}"); + println!("{}\n", docker.instance.ssh_instructions()); + } + for (i, shotover) in shotover.iter().enumerate() { + println!("Shotover instance #{i}"); + println!("{}\n", shotover.instance.ssh_instructions()); + } + for (i, bencher) in bencher.iter().enumerate() { + println!("Bencher instance #{i}"); + println!("{}\n", bencher.instance.ssh_instructions()); + } + let bencher = bencher.pop(); CloudResources { shotover,