mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-10-04 17:51:11 +00:00
Merge pull request #980 from BashtonLtd/gce_instance_template_network_update
Update Instance Template network definition to match changes to Instance.
This commit is contained in:
commit
4709ad3bfe
@ -42,8 +42,8 @@ resource "google_compute_instance_template" "foobar" {
|
|||||||
boot = false
|
boot = false
|
||||||
}
|
}
|
||||||
|
|
||||||
network {
|
network_interface {
|
||||||
source = "default"
|
network = "default"
|
||||||
}
|
}
|
||||||
|
|
||||||
metadata {
|
metadata {
|
||||||
@ -82,7 +82,7 @@ The following arguments are supported:
|
|||||||
* `metadata` - (Optional) Metadata key/value pairs to make available from
|
* `metadata` - (Optional) Metadata key/value pairs to make available from
|
||||||
within instances created from this template.
|
within instances created from this template.
|
||||||
|
|
||||||
* `network` - (Required) Networks to attach to instances created from this template.
|
* `network_interface` - (Required) Networks to attach to instances created from this template.
|
||||||
This can be specified multiple times for multiple networks. Structure is
|
This can be specified multiple times for multiple networks. Structure is
|
||||||
documented below.
|
documented below.
|
||||||
|
|
||||||
@ -130,12 +130,20 @@ The `disk` block supports:
|
|||||||
|
|
||||||
* `type` - (Optional) The GCE disk type.
|
* `type` - (Optional) The GCE disk type.
|
||||||
|
|
||||||
The `network` block supports:
|
The `network_interface` block supports:
|
||||||
|
|
||||||
* `source` - (Required) The name of the network to attach this interface to.
|
* `network` - (Required) The name of the network to attach this interface to.
|
||||||
|
|
||||||
* `address` - (Optional) The IP address of a reserved IP address to assign
|
* `access_config` - (Optional) Access configurations, i.e. IPs via which this instance can be
|
||||||
to this interface.
|
accessed via the Internet. Omit to ensure that the instance is not accessible from the Internet
|
||||||
|
(this means that ssh provisioners will not work unless you are running Terraform can send traffic to
|
||||||
|
the instance's network (e.g. via tunnel or because it is running on another cloud instance on that
|
||||||
|
network). This block can be repeated multiple times. Structure documented below.
|
||||||
|
|
||||||
|
The `access_config` block supports:
|
||||||
|
|
||||||
|
* `nat_ip` - (Optional) The IP address that will be 1:1 mapped to the instance's network ip. If not
|
||||||
|
given, one will be generated.
|
||||||
|
|
||||||
The `service_account` block supports:
|
The `service_account` block supports:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user