From f949e53899f617ac433d1de21a31f7d35f94d341 Mon Sep 17 00:00:00 2001 From: Riley Karson Date: Tue, 2 Oct 2018 16:07:28 -0700 Subject: [PATCH] Deprecate assigned_nat_ip in compute_instance family (#2155) Part of #2143 --- docs/d/datasource_compute_instance.html.markdown | 4 +++- docs/r/compute_instance.html.markdown | 5 ++++- docs/r/dns_record_set.markdown | 2 +- docs/r/sql_database_instance.html.markdown | 2 +- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/docs/d/datasource_compute_instance.html.markdown b/docs/d/datasource_compute_instance.html.markdown index a8c1b210bb1..d3bca44d88c 100644 --- a/docs/d/datasource_compute_instance.html.markdown +++ b/docs/d/datasource_compute_instance.html.markdown @@ -90,8 +90,10 @@ This attribute has been deprecated. Use `network_interface.0.network_ip` instead * `network_interface.0.network_ip` - The internal ip address of the instance, either manually or dynamically assigned. +* `network_interface.0.access_config.0.nat_ip` - If the instance has an access config, either the given external ip (in the `nat_ip` field) or the ephemeral (generated) ip (if you didn't provide one). -* `network_interface.0.access_config.0.assigned_nat_ip` - If the instance has an access config, either the given external ip (in the `nat_ip` field) or the ephemeral (generated) ip (if you didn't provide one). +* `network_interface.0.access_config.0.assigned_nat_ip` - (Deprecated) If the instance has an access config, either the given external ip (in the `nat_ip` field) or the ephemeral (generated) ip (if you didn't provide one). +This attribute has been deprecated. Use `network_interface.0.access_config.0.nat_ip` instead. * `attached_disk.0.disk_encryption_key_sha256` - The [RFC 4648 base64](https://tools.ietf.org/html/rfc4648#section-4) encoded SHA-256 hash of the [customer-supplied encryption key] diff --git a/docs/r/compute_instance.html.markdown b/docs/r/compute_instance.html.markdown index d6d4582db8b..5596e8e8f00 100644 --- a/docs/r/compute_instance.html.markdown +++ b/docs/r/compute_instance.html.markdown @@ -296,7 +296,10 @@ This attribute has been deprecated. Use `network_interface.0.network_ip`instead. * `network_interface.0.network_ip` - The internal ip address of the instance, either manually or dynamically assigned. -* `network_interface.0.access_config.0.assigned_nat_ip` - If the instance has an access config, either the given external ip (in the `nat_ip` field) or the ephemeral (generated) ip (if you didn't provide one). +* `network_interface.0.access_config.0.nat_ip` - If the instance has an access config, either the given external ip (in the `nat_ip` field) or the ephemeral (generated) ip (if you didn't provide one). + +* `network_interface.0.access_config.0.assigned_nat_ip` - (Deprecated) If the instance has an access config, either the given external ip (in the `nat_ip` field) or the ephemeral (generated) ip (if you didn't provide one). +This attribute has been deprecated. Use `network_interface.0.access_config.0.nat_ip` instead. * `attached_disk.0.disk_encryption_key_sha256` - The [RFC 4648 base64](https://tools.ietf.org/html/rfc4648#section-4) encoded SHA-256 hash of the [customer-supplied encryption key] diff --git a/docs/r/dns_record_set.markdown b/docs/r/dns_record_set.markdown index d37d8b5f5a2..36f0d56ea4f 100644 --- a/docs/r/dns_record_set.markdown +++ b/docs/r/dns_record_set.markdown @@ -29,7 +29,7 @@ resource "google_dns_record_set" "frontend" { managed_zone = "${google_dns_managed_zone.prod.name}" - rrdatas = ["${google_compute_instance.frontend.network_interface.0.access_config.0.assigned_nat_ip}"] + rrdatas = ["${google_compute_instance.frontend.network_interface.0.access_config.0.nat_ip}"] } resource "google_compute_instance" "frontend" { diff --git a/docs/r/sql_database_instance.html.markdown b/docs/r/sql_database_instance.html.markdown index e6c7de77ec3..0771f91a016 100644 --- a/docs/r/sql_database_instance.html.markdown +++ b/docs/r/sql_database_instance.html.markdown @@ -78,7 +78,7 @@ data "null_data_source" "auth_netw_postgres_allowed_1" { inputs = { name = "apps-${count.index + 1}" - value = "${element(google_compute_instance.apps.*.network_interface.0.access_config.0.assigned_nat_ip, count.index)}" + value = "${element(google_compute_instance.apps.*.network_interface.0.access_config.0.nat_ip, count.index)}" } }