@@ -105,6 +105,45 @@ resource "google_compute_network" "network" {
105
105
auto_create_subnetworks = false
106
106
}
107
107
```
108
+ <div class = " oics-button " style =" float : right ; margin : 0 0 -15px " >
109
+ <a href =" https://console.cloud.google.com/cloudshell/open?cloudshell_git_repo=https%3A%2F%2Fgithub.com%2Fterraform-google-modules%2Fdocs-examples.git&cloudshell_image=gcr.io%2Fcloudshell-images%2Fcloudshell%3Alatest&cloudshell_print=.%2Fmotd&cloudshell_tutorial=.%2Ftutorial.md&cloudshell_working_dir=compute_interconnect_attachment_custom_ranges&open_in_editor=main.tf " target =" _blank " >
110
+ <img alt="Open in Cloud Shell" src="//gstatic.com/cloudssh/images/open-btn.svg" style="max-height: 44px; margin: 32px auto; max-width: 100%;">
111
+ </a >
112
+ </div >
113
+ ## Example Usage - Compute Interconnect Attachment Custom Ranges
114
+
115
+
116
+ ``` hcl
117
+ resource "google_compute_interconnect_attachment" "custom-ranges-interconnect-attachment" {
118
+ name = "test-custom-ranges-interconnect-attachment"
119
+ edge_availability_domain = "AVAILABILITY_DOMAIN_1"
120
+ type = "PARTNER"
121
+ router = google_compute_router.foobar.id
122
+ mtu = 1500
123
+ stack_type = "IPV4_IPV6"
124
+ labels = { mykey = "myvalue" }
125
+ candidate_cloud_router_ip_address = "192.169.0.1/29"
126
+ candidate_customer_router_ip_address = "192.169.0.2/29"
127
+ candidate_cloud_router_ipv6_address = "748d:2f23:6651:9455:828b:ca81:6fe0:fed1/125"
128
+ candidate_customer_router_ipv6_address = "748d:2f23:6651:9455:828b:ca81:6fe0:fed2/125"
129
+ provider = google-beta
130
+ }
131
+
132
+ resource "google_compute_router" "foobar" {
133
+ name = "test-router"
134
+ network = google_compute_network.foobar.name
135
+ bgp {
136
+ asn = 16550
137
+ }
138
+ provider = google-beta
139
+ }
140
+
141
+ resource "google_compute_network" "foobar" {
142
+ name = "test-network"
143
+ auto_create_subnetworks = false
144
+ provider = google-beta
145
+ }
146
+ ```
108
147
109
148
## Argument Reference
110
149
@@ -249,6 +288,26 @@ The following arguments are supported:
249
288
** Note** : This field is non-authoritative, and will only manage the labels present in your configuration.
250
289
Please refer to the field ` effective_labels ` for all of the labels present on the resource.
251
290
291
+ * ` candidate_cloud_router_ip_address ` -
292
+ (Optional, [ Beta] ( https://terraform.io/docs/providers/google/guides/provider_versions.html ) )
293
+ Single IPv4 address + prefix length to be configured on the cloud router interface for this
294
+ interconnect attachment. Example: 203.0.113.1/29
295
+
296
+ * ` candidate_customer_router_ip_address ` -
297
+ (Optional, [ Beta] ( https://terraform.io/docs/providers/google/guides/provider_versions.html ) )
298
+ Single IPv4 address + prefix length to be configured on the customer router interface for this
299
+ interconnect attachment. Example: 203.0.113.2/29
300
+
301
+ * ` candidate_cloud_router_ipv6_address ` -
302
+ (Optional, [ Beta] ( https://terraform.io/docs/providers/google/guides/provider_versions.html ) )
303
+ Single IPv6 address + prefix length to be configured on the cloud router interface for this
304
+ interconnect attachment. Example: 2001:db8::1/125
305
+
306
+ * ` candidate_customer_router_ipv6_address ` -
307
+ (Optional, [ Beta] ( https://terraform.io/docs/providers/google/guides/provider_versions.html ) )
308
+ Single IPv6 address + prefix length to be configured on the customer router interface for this
309
+ interconnect attachment. Example: 2001:db8::2/125
310
+
252
311
* ` region ` -
253
312
(Optional)
254
313
Region where the regional interconnect attachment resides.
0 commit comments