Add execution/invocation commands to outputs

This commit is contained in:
Wiktor Niesiobędzki
2025-02-21 16:34:51 +00:00
committed by Wiktor Niesiobędzki
parent b73114c0a8
commit 62f789c249
10 changed files with 83 additions and 32 deletions

View File

@@ -55,6 +55,11 @@ output "internal_ips" {
]
}
output "login_command" {
description = "Command to SSH into the machine."
value = "gcloud compute ssh --project ${var.project_id} --zone ${var.zone} ${var.name}"
}
output "self_link" {
description = "Instance self links."
value = try(google_compute_instance.default[0].self_link, null)