Add default googleapi route creation to net-vpc

This commit is contained in:
Julio Castillo
2023-05-26 10:50:00 +02:00
parent 868507e932
commit 7a91a7e41c
17 changed files with 133 additions and 196 deletions

View File

@@ -1,5 +1,5 @@
/**
* Copyright 2022 Google LLC
* Copyright 2023 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -20,6 +20,18 @@ variable "auto_create_subnetworks" {
default = false
}
variable "create_default_routes" {
description = "Toggle creation of googleapis private/restricted routes."
type = object({
private = optional(bool, true)
private6 = optional(bool, false)
restricted = optional(bool, true)
restricted6 = optional(bool, false)
})
default = {}
nullable = false
}
variable "data_folder" {
description = "An optional folder containing the subnet configurations in YaML format."
type = string