From 68a3b283e3b9d00b0eeb1e9ebe414f984fcbf419 Mon Sep 17 00:00:00 2001 From: Evan Brown Date: Sun, 7 Aug 2016 18:01:31 -0700 Subject: [PATCH] provider/google: Support static private IP addresses (#6310) * provider/google: Support static private IP addresses The private address of an instance's network interface may now be specified. If no value is provided, an address will be chosen by Google Compute Engine and that value will be read into Terraform state. * docs: GCE private static IP address information --- r/compute_instance.html.markdown | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/r/compute_instance.html.markdown b/r/compute_instance.html.markdown index 77f89f36..3164f106 100644 --- a/r/compute_instance.html.markdown +++ b/r/compute_instance.html.markdown @@ -139,6 +139,9 @@ The `network_interface` block supports: to. The subnetwork must exist in the same region this instance will be created in. Either `network` or `subnetwork` must be provided. +* `address` - (Optional) The private IP address to assign to the instance. If + empty, the address will be automatically assigned. + * `access_config` - (Optional) Access configurations, i.e. IPs via which this instance can be accessed via the Internet. Omit to ensure that the instance is not accessible from the Internet (this means that ssh provisioners will @@ -189,7 +192,7 @@ exported: * `tags_fingerprint` - The unique fingerprint of the tags. -* `network_interface.0.address` - The internal ip address of the instance (usually on the 10.x.x.x range). +* `network_interface.0.address` - 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).