Skip to content

Commit

Permalink
Add include export ranges to ncc module
Browse files Browse the repository at this point in the history
  • Loading branch information
gleichda committed Sep 27, 2024
1 parent 2a7c753 commit 6dd5626
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/network-connectivity-center/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ An extensive example that also contains the creation and attachment of multiple
| 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 |
| 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> description = optional(string)<br> labels = optional(map(string))<br> }))</pre> | `{}` | 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 |

## Outputs

Expand Down
1 change: 1 addition & 0 deletions modules/network-connectivity-center/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ resource "google_network_connectivity_spoke" "vpc_spoke" {
linked_vpc_network {
uri = each.value.uri
exclude_export_ranges = each.value.exclude_export_ranges
include_export_ranges = each.value.include_export_ranges
}
}

Expand Down
3 changes: 2 additions & 1 deletion modules/network-connectivity-center/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ variable "vpc_spokes" {
description = "VPC network that is associated with the spoke"
type = map(object({
uri = string
exclude_export_ranges = optional(set(string))
exclude_export_ranges = optional(set(string), [])
include_export_ranges = optional(set(string), [])
description = optional(string)
labels = optional(map(string))
}))
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 = ">= 5.40.0, < 7"
version = ">= 6.2.0, < 7"

}
}
Expand Down

0 comments on commit 6dd5626

Please sign in to comment.