Skip to content

Commit 6dd5626

Browse files
committed
Add include export ranges to ncc module
1 parent 2a7c753 commit 6dd5626

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

modules/network-connectivity-center/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ An extensive example that also contains the creation and attachment of multiple
3030
| project\_id | Project ID of the project that holds the network. | `string` | n/a | yes |
3131
| 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 |
3232
| spoke\_labels | These labels will be added to all NCC spokes | `map(string)` | `{}` | no |
33-
| vpc\_spokes | VPC network that is associated with the spoke | <pre>map(object({<br> uri = string<br> exclude_export_ranges = optional(set(string))<br> description = optional(string)<br> labels = optional(map(string))<br> }))</pre> | `{}` | no |
33+
| 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 |
3434

3535
## Outputs
3636

modules/network-connectivity-center/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ resource "google_network_connectivity_spoke" "vpc_spoke" {
5050
linked_vpc_network {
5151
uri = each.value.uri
5252
exclude_export_ranges = each.value.exclude_export_ranges
53+
include_export_ranges = each.value.include_export_ranges
5354
}
5455
}
5556

modules/network-connectivity-center/variables.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ variable "vpc_spokes" {
4545
description = "VPC network that is associated with the spoke"
4646
type = map(object({
4747
uri = string
48-
exclude_export_ranges = optional(set(string))
48+
exclude_export_ranges = optional(set(string), [])
49+
include_export_ranges = optional(set(string), [])
4950
description = optional(string)
5051
labels = optional(map(string))
5152
}))

modules/network-connectivity-center/versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ terraform {
2020
required_providers {
2121
google = {
2222
source = "hashicorp/google"
23-
version = ">= 5.40.0, < 7"
23+
version = ">= 6.2.0, < 7"
2424

2525
}
2626
}

0 commit comments

Comments
 (0)