File tree 2 files changed +49
-0
lines changed
templates/terraform/examples
2 files changed +49
-0
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,14 @@ examples:
66
66
network_name : ' test-network'
67
67
ignore_read_extra :
68
68
- ' advertisedIpRanges'
69
+ - name : ' compute_router_md5encrypted'
70
+ primary_resource_id : ' foobar'
71
+ vars :
72
+ router_name : ' test-router'
73
+ network_name : ' test-network'
74
+ exclude_docs : true
75
+ ignore_read_extra :
76
+ - ' advertisedIpRanges'
69
77
parameters :
70
78
- name : ' region'
71
79
type : ResourceRef
@@ -208,3 +216,20 @@ properties:
208
216
Indicates if a router is dedicated for use with encrypted VLAN
209
217
attachments (interconnectAttachments).
210
218
immutable : true
219
+ - name : ' md5AuthenticationKeys'
220
+ ignore_read : true
221
+ type : NestedObject
222
+ description : |
223
+ Keys used for MD5 authentication.
224
+ properties :
225
+ - name : ' name'
226
+ type : String
227
+ description : |
228
+ Name used to identify the key. Must be unique within a router.
229
+ Must be referenced by exactly one bgpPeer. Must comply with RFC1035.
230
+ required : true
231
+ - name : ' key'
232
+ type : String
233
+ description : |
234
+ Value of the key used for MD5 authentication.
235
+ required : true
Original file line number Diff line number Diff line change
1
+ resource "google_compute_router" "foobar" {
2
+ name = "{{index $.Vars "router_name"}}"
3
+ network = google_compute_network.foobar.name
4
+ bgp {
5
+ asn = 64514
6
+ advertise_mode = "CUSTOM"
7
+ advertised_groups = ["ALL_SUBNETS"]
8
+ advertised_ip_ranges {
9
+ range = "1.2.3.4"
10
+ }
11
+ advertised_ip_ranges {
12
+ range = "6.7.0.0/16"
13
+ }
14
+ }
15
+ md5_authentication_keys {
16
+ name = "test"
17
+ key = "test"
18
+ }
19
+ }
20
+
21
+ resource "google_compute_network" "foobar" {
22
+ name = "{{index $.Vars "network_name"}}"
23
+ auto_create_subnetworks = false
24
+ }
You can’t perform that action at this time.
0 commit comments