Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions modules/network-connectivity-center/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ An extensive example that also contains the creation and attachment of multiple
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| export\_psc | Whether Private Service Connect transitivity is enabled for the hub | `bool` | `false` | no |
| hybrid\_spokes | VLAN attachments and VPN Tunnels that are associated with the spoke. Type must be one of `interconnect` and `vpn`. | <pre>map(object({<br> location = string<br> uris = set(string)<br> site_to_site_data_transfer = optional(bool, false)<br> type = string<br> description = optional(string)<br> labels = optional(map(string))<br> }))</pre> | `{}` | no |
| hybrid\_spokes | VLAN attachments and VPN Tunnels that are associated with the spoke. Type must be one of `interconnect` and `vpn`. | <pre>map(object({<br> location = string<br> uris = set(string)<br> site_to_site_data_transfer = optional(bool, false)<br> type = string<br> description = optional(string)<br> labels = optional(map(string))<br> include_import_ranges = optional(list(string), [])<br> }))</pre> | `{}` | no |
| ncc\_hub\_description | The description of the NCC Hub | `string` | `null` | no |
| ncc\_hub\_labels | These labels will be added the NCC hub | `map(string)` | `{}` | no |
| ncc\_hub\_name | The Name of the NCC Hub | `string` | n/a | yes |
| project\_id | Project ID of the project that holds the network. | `string` | n/a | yes |
| router\_appliance\_spokes | Router appliance instances that are associated with the spoke. | <pre>map(object({<br> instances = set(object({<br> virtual_machine = string<br> ip_address = string<br> }))<br> location = string<br> site_to_site_data_transfer = optional(bool, false)<br> description = optional(string)<br> labels = optional(map(string))<br> }))</pre> | `{}` | no |
| router\_appliance\_spokes | Router appliance instances that are associated with the spoke. | <pre>map(object({<br> instances = set(object({<br> virtual_machine = string<br> ip_address = string<br> }))<br> location = string<br> site_to_site_data_transfer = optional(bool, false)<br> description = optional(string)<br> labels = optional(map(string))<br> include_import_ranges = optional(list(string), [])<br> }))</pre> | `{}` | no |
| spoke\_labels | These labels will be added to all NCC spokes | `map(string)` | `{}` | no |
| vpc\_spokes | VPC network that is associated with the spoke | <pre>map(object({<br> uri = string<br> exclude_export_ranges = optional(set(string), [])<br> include_export_ranges = optional(set(string), [])<br> description = optional(string)<br> labels = optional(map(string))<br> }))</pre> | `{}` | no |

Expand Down
3 changes: 3 additions & 0 deletions modules/network-connectivity-center/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ resource "google_network_connectivity_spoke" "hybrid_spoke" {
content {
uris = each.value.uris
site_to_site_data_transfer = each.value.site_to_site_data_transfer
include_import_ranges = each.value.include_import_ranges
}
}

Expand All @@ -76,6 +77,7 @@ resource "google_network_connectivity_spoke" "hybrid_spoke" {
content {
uris = each.value.uris
site_to_site_data_transfer = each.value.site_to_site_data_transfer
include_import_ranges = each.value.include_import_ranges
}
}
}
Expand All @@ -99,6 +101,7 @@ resource "google_network_connectivity_spoke" "router_appliance_spoke" {
}
}
site_to_site_data_transfer = each.value.site_to_site_data_transfer
include_import_ranges = each.value.include_import_ranges

}
}
2 changes: 2 additions & 0 deletions modules/network-connectivity-center/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ variable "hybrid_spokes" {
type = string
description = optional(string)
labels = optional(map(string))
include_import_ranges = optional(list(string), [])
}))
default = {}
}
Expand All @@ -77,6 +78,7 @@ variable "router_appliance_spokes" {
site_to_site_data_transfer = optional(bool, false)
description = optional(string)
labels = optional(map(string))
include_import_ranges = optional(list(string), [])
}))
default = {}
}
Expand Down
2 changes: 1 addition & 1 deletion modules/network-connectivity-center/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ terraform {
required_providers {
google = {
source = "hashicorp/google"
version = ">= 6.2, < 8"
version = ">= 6.49, < 8"

}
}
Expand Down