Skip to content

Commit a7218f3

Browse files
committed
add option to specify md5 authentication key in interconnect peer
1 parent 59bac5c commit a7218f3

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

modules/interconnect_attachment/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
| ipsec\_internal\_addresses | URL of addresses that have been reserved for the interconnect attachment, Used only for interconnect attachment that has the encryption option as IPSEC. | `list(string)` | `[]` | no |
1616
| mtu | Maximum Transmission Unit (MTU), in bytes, of packets passing through this interconnect attachment. Currently, only 1440 and 1500 are allowed. If not specified, the value will default to 1440. | `string` | `null` | no |
1717
| name | The name of the interconnect attachment | `string` | n/a | yes |
18-
| peer | BGP Peer for this attachment. | <pre>object({<br> name = string<br> peer_asn = string<br> advertised_route_priority = optional(number)<br> bfd = optional(object({<br> session_initialization_mode = string<br> min_transmit_interval = optional(number)<br> min_receive_interval = optional(number)<br> multiplier = optional(number)<br> }))<br> })</pre> | n/a | yes |
18+
| peer | BGP Peer for this attachment. | <pre>object({<br> name = string<br> peer_asn = string<br> advertised_route_priority = optional(number)<br> bfd = optional(object({<br> session_initialization_mode = string<br> min_transmit_interval = optional(number)<br> min_receive_interval = optional(number)<br> multiplier = optional(number)<br> }))<br> md5_authentication_key = object({<br> name = string<br> key = string<br> })<br> })</pre> | n/a | yes |
1919
| project | The project ID to deploy to | `string` | n/a | yes |
2020
| region | Region where the attachment resides | `string` | n/a | yes |
2121
| router | Name of the router the attachment resides | `string` | n/a | yes |

modules/interconnect_attachment/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,6 @@ module "interface" {
4747
peer_asn = var.peer.peer_asn
4848
advertised_route_priority = lookup(var.peer, "advertised_route_priority", null)
4949
bfd = lookup(var.peer, "bfd", null)
50+
md5_authentication_key = lookup(var.peer, "md5_authentication_key", null)
5051
}]
5152
}

modules/interconnect_attachment/variables.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,5 +112,9 @@ variable "peer" {
112112
min_receive_interval = optional(number)
113113
multiplier = optional(number)
114114
}))
115+
md5_authentication_key = object({
116+
name = string
117+
key = string
118+
})
115119
})
116120
}

0 commit comments

Comments
 (0)