github.com/koding/terraform@v0.6.4-0.20170608090606-5d7e0339779d/website/source/docs/providers/google/r/compute_router_interface.html.markdown (about)

     1  ---
     2  layout: "google"
     3  page_title: "Google: google_compute_router_interface"
     4  sidebar_current: "docs-google-compute-router-interface"
     5  description: |-
     6    Manages a Cloud Router interface.
     7  ---
     8  
     9  # google\_compute\_router_interface
    10  
    11  Manages a Cloud Router interface. For more info, read the
    12  [documentation](https://cloud.google.com/compute/docs/cloudrouter).
    13  
    14  ## Example Usage
    15  
    16  ```hcl
    17  resource "google_compute_router_interface" "foobar" {
    18    name       = "interface-1"
    19    router     = "router-1"
    20    region     = "us-central1"
    21    ip_range   = "169.254.1.1/30"
    22    vpn_tunnel = "tunnel-1"
    23  }
    24  ```
    25  
    26  ## Argument Reference
    27  
    28  The following arguments are supported:
    29  
    30  * `name` - (Required) A unique name for the interface, required by GCE. Changing
    31      this forces a new interface to be created.
    32  
    33  * `router` - (Required) The name of the router this interface will be attached to.
    34      Changing this forces a new interface to be created.
    35  
    36  * `vpn_tunnel` - (Required) The name or resource link to the VPN tunnel this
    37      interface will be linked to. Changing this forces a new interface to be created.
    38  
    39  - - -
    40  
    41  * `ip_range` - (Optional) IP address and range of the interface. The IP range must be 
    42      in the RFC3927 link-local IP space. Changing this forces a new interface to be created.
    43  
    44  * `project` - (Optional) The project in which this interface's router belongs. If it
    45      is not provided, the provider project is used. Changing this forces a new interface to be created.
    46  
    47  * `region` - (Optional) The region this interface's router sits in. If not specified,
    48      the project region will be used. Changing this forces a new interface to be
    49      created.
    50  
    51  ## Attributes Reference
    52  
    53  Only the arguments listed above are exposed as attributes.
    54  
    55  ## Import
    56  
    57  Router interfaces can be imported using the `region`, `router` and `name`, e.g.
    58  
    59  ```
    60  $ terraform import google_compute_router_interface.interface-1 us-central1/router-1/interface-1
    61  ```
    62