|
|
@ -86,7 +86,7 @@ resource "google_compute_instance" "default" { |
|
|
|
type = "ssh" |
|
|
|
type = "ssh" |
|
|
|
user = var.gcp_ssh_user |
|
|
|
user = var.gcp_ssh_user |
|
|
|
timeout = "500s" |
|
|
|
timeout = "500s" |
|
|
|
private_key = "${file(var.gcp_ssh_priv_key_file)}" |
|
|
|
private_key = file(var.gcp_ssh_priv_key_file) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -102,12 +102,12 @@ resource "google_compute_instance" "default" { |
|
|
|
type = "ssh" |
|
|
|
type = "ssh" |
|
|
|
user = var.gcp_ssh_user |
|
|
|
user = var.gcp_ssh_user |
|
|
|
timeout = "500s" |
|
|
|
timeout = "500s" |
|
|
|
private_key = "${file(var.gcp_ssh_priv_key_file)}" |
|
|
|
private_key = file(var.gcp_ssh_priv_key_file) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
## GET VM PUBLIC IP |
|
|
|
## GET VM PUBLIC IP |
|
|
|
output "Web-server-URL" { |
|
|
|
output "Web-server-URL" { |
|
|
|
value = join("",["http://",google_compute_instance.default.network_interface.0.access_config.0.nat_ip,":5000"]) |
|
|
|
value = join("", ["http://", google_compute_instance.default.network_interface.0.access_config.0.nat_ip, ":5000"]) |
|
|
|
} |
|
|
|
} |