-
Notifications
You must be signed in to change notification settings - Fork 9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(benchmark): Use
ssh
instead of az ssh vm
While the `az ssh vm` is more secure, it has multiple issues: - The access token expires in 10 mins, causing test failures: `ERROR: AADSTS700024: Client assertion is not within its valid time range` - It does not propagate the exit code, but instead always exits with 0 - It can't do `scp`, so we need to clone the repo. This makes local development more cumbersome - It logs all kinds of unnecessary stuff into stdout Hence this commits replaces `az ssh vm` with `ssh` and `scp`. Since the benchmark environment is a throwaway env without any critical data, it's not the biggest deals. We keep the private key hidden throughout the run anyways, so it's not leaked unless someone gains access to the GH runner.
- Loading branch information
Showing
9 changed files
with
84 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,16 @@ | ||
output "vm_name" { | ||
value = module.test_vm.vm_name | ||
} | ||
|
||
output "ip" { | ||
value = module.test_vm.ip | ||
} | ||
|
||
output "ssh_username" { | ||
value = module.test_vm.ssh_username | ||
} | ||
|
||
output "ssh_private_key" { | ||
value = tls_private_key.ssh_key.private_key_pem | ||
sensitive = true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters