File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -233,3 +233,26 @@ resource "google_compute_forwarding_rule" "cf-ws-http" {
233
233
ip_protocol = " TCP"
234
234
ip_address = " ${ google_compute_address . cf-ws . address } "
235
235
}
236
+
237
+ resource "google_compute_router" "router" {
238
+ name = " ${ var . env_id } -router"
239
+ region = " ${ var . region } "
240
+ network = " ${ google_compute_network . bbl-network . name } "
241
+
242
+ bgp {
243
+ asn = 64514
244
+ }
245
+ }
246
+
247
+ resource "google_compute_router_nat" "nat" {
248
+ name = " ${ var . env_id } -router-nat"
249
+ router = " ${ google_compute_router . router . name } "
250
+ region = " ${ var . region } "
251
+ nat_ip_allocate_option = " AUTO_ONLY"
252
+ source_subnetwork_ip_ranges_to_nat = " ALL_SUBNETWORKS_ALL_IP_RANGES"
253
+
254
+ log_config {
255
+ enable = true
256
+ filter = " ERRORS_ONLY"
257
+ }
258
+ }
You can’t perform that action at this time.
0 commit comments