File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -106,6 +106,7 @@ resource "google_compute_router" "router" {
106106}
107107
108108resource "google_compute_router_peer" "bgp_peer" {
109+ provider = google- beta
109110 for_each = var. tunnels
110111 region = var. region
111112 project = var. project_id
@@ -131,6 +132,12 @@ resource "google_compute_router_peer" "bgp_peer" {
131132 : each. value . bgp_peer_options . advertise_groups
132133 )
133134 )
135+ import_policies = (
136+ each. value . bgp_peer_options == null ? null : each. value . bgp_peer_options . import_policies
137+ )
138+ export_policies = (
139+ each. value . bgp_peer_options == null ? null : each. value . bgp_peer_options . export_policies
140+ )
134141 dynamic "advertised_ip_ranges" {
135142 for_each = (
136143 each. value . bgp_peer_options == null ? {} : (
Original file line number Diff line number Diff line change @@ -113,6 +113,8 @@ variable "tunnels" {
113113 advertise_ip_ranges = optional (map (string ))
114114 advertise_mode = optional (string )
115115 route_priority = optional (number )
116+ import_policies = optional (list (string ))
117+ export_policies = optional (list (string ))
116118 }))
117119 bgp_session_range = optional (string )
118120 ike_version = optional (number )
You can’t perform that action at this time.
0 commit comments