Skip to content

Commit 96c62c7

Browse files
authored
feat: Add candidate subnets field in interconnect attachment (#5)
1 parent 2635e4e commit 96c62c7

File tree

2 files changed

+17
-10
lines changed

2 files changed

+17
-10
lines changed

modules/interconnect_attachment/main.tf

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,17 @@
1515
*/
1616

1717
resource "google_compute_interconnect_attachment" "attachment" {
18-
name = var.name
19-
router = var.router
20-
project = var.project
21-
region = var.region
22-
interconnect = var.interconnect
23-
admin_enabled = var.admin_enabled
24-
type = var.type
25-
description = var.description
26-
bandwidth = var.bandwidth
27-
vlan_tag8021q = var.vlan_tag8021q
18+
name = var.name
19+
router = var.router
20+
project = var.project
21+
region = var.region
22+
interconnect = var.interconnect
23+
admin_enabled = var.admin_enabled
24+
type = var.type
25+
description = var.description
26+
bandwidth = var.bandwidth
27+
candidate_subnets = var.candidate_subnets
28+
vlan_tag8021q = var.vlan_tag8021q
2829
}
2930

3031
module "interface" {

modules/interconnect_attachment/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,12 @@ variable "description" {
6363
default = null
6464
}
6565

66+
variable "candidate_subnets" {
67+
type = list(string)
68+
description = "Up to 16 candidate prefixes that can be used to restrict the allocation of cloudRouterIpAddress and customerRouterIpAddress for this attachment. All prefixes must be within link-local address space (169.254.0.0/16) and must be /29 or shorter (/28, /27, etc)."
69+
default = null
70+
}
71+
6672
variable "vlan_tag8021q" {
6773
type = string
6874
description = "The IEEE 802.1Q VLAN tag for this attachment, in the range 2-4094."

0 commit comments

Comments
 (0)