From 0670ff3dbb7276218afd714b5fe8de147a03b5b2 Mon Sep 17 00:00:00 2001 From: Igor Lefter Date: Tue, 4 Jun 2019 22:10:29 +0300 Subject: [PATCH] Replace deprecated field 'google_compute_instance.assigned_nat_ip' with actual one --- terraform/modules/gcp-rancher/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terraform/modules/gcp-rancher/main.tf b/terraform/modules/gcp-rancher/main.tf index a55e1a74..8690bebb 100644 --- a/terraform/modules/gcp-rancher/main.tf +++ b/terraform/modules/gcp-rancher/main.tf @@ -60,7 +60,7 @@ resource "google_compute_instance" "rancher_master" { locals { rancher_master_id = "${google_compute_instance.rancher_master.instance_id}" - rancher_master_ip = "${google_compute_instance.rancher_master.network_interface.0.access_config.0.assigned_nat_ip}" + rancher_master_ip = "${google_compute_instance.rancher_master.network_interface.0.access_config.0.nat_ip}" ssh_user = "${var.gcp_ssh_user}" key_path = "${var.gcp_private_key_path}" }