github.com/koding/terraform@v0.6.4-0.20170608090606-5d7e0339779d/website/source/docs/providers/google/r/compute_router_peer.html.markdown (about) 1 --- 2 layout: "google" 3 page_title: "Google: google_compute_router_peer" 4 sidebar_current: "docs-google-compute-router-peer" 5 description: |- 6 Manages a Cloud Router BGP peer. 7 --- 8 9 # google\_compute\_router 10 11 Manages a Cloud Router BGP peer. 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_peer" "foobar" { 18 name = "peer-1" 19 router = "router-1" 20 region = "us-central1" 21 peer_ip_address = "169.254.1.2" 22 peer_asn = 65513 23 advertised_route_priority = 100 24 interface = "interface-1" 25 } 26 ``` 27 28 ## Argument Reference 29 30 The following arguments are supported: 31 32 * `name` - (Required) A unique name for BGP peer, required by GCE. Changing 33 this forces a new peer to be created. 34 35 * `router` - (Required) The name of the router in which this BGP peer will be configured. 36 Changing this forces a new peer to be created. 37 38 * `interface` - (Required) The name of the interface the BGP peer is associated with. 39 Changing this forces a new peer to be created. 40 41 * `peer_ip_address` - (Required) IP address of the BGP interface outside Google Cloud. 42 Changing this forces a new peer to be created. 43 44 * `peer_asn` - (Required) Peer BGP Autonomous System Number (ASN). 45 Changing this forces a new peer to be created. 46 47 - - - 48 49 * `advertised_route_priority` - (Optional) The priority of routes advertised to this BGP peer. 50 Changing this forces a new peer to be created. 51 52 * `project` - (Optional) The project in which this peer's router belongs. If it 53 is not provided, the provider project is used. Changing this forces a new peer to be created. 54 55 * `region` - (Optional) The region this peer's router sits in. If not specified, 56 the project region will be used. Changing this forces a new peer to be 57 created. 58 59 ## Attributes Reference 60 61 In addition to the arguments listed above, the following computed attributes are 62 exported: 63 64 * `ip_address` - IP address of the interface inside Google Cloud Platform. 65 66 ## Import 67 68 Router BGP peers can be imported using the `region`, `router` and `name`, e.g. 69 70 ``` 71 $ terraform import google_compute_router_peer.peer-1 us-central1/router-1/peer-1 72 ```