Skip to content

Commit e2c0c70

Browse files
Add fields for custom ranges for interconnect attachment (#14106) (#23043)
[upstream:844aac8472ba65afa501f62815a12e52882f9ef5] Signed-off-by: Modular Magician <magic-modules@google.com>
1 parent 648adcf commit e2c0c70

File tree

2 files changed

+62
-0
lines changed

2 files changed

+62
-0
lines changed

.changelog/14106.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
compute: added `candidate_cloud_router_ip_address`, `candidate_customer_router_ip_address`, `candidate_cloud_router_ipv6_address`, and `candidate_customer_router_ipv6_address` fields to `google_compute_interconnect_attachment` resource (beta)
3+
```

website/docs/r/compute_interconnect_attachment.html.markdown

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,45 @@ resource "google_compute_network" "network" {
105105
auto_create_subnetworks = false
106106
}
107107
```
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+
```
108147

109148
## Argument Reference
110149

@@ -249,6 +288,26 @@ The following arguments are supported:
249288
**Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
250289
Please refer to the field `effective_labels` for all of the labels present on the resource.
251290

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+
252311
* `region` -
253312
(Optional)
254313
Region where the regional interconnect attachment resides.

0 commit comments

Comments
 (0)