Skip to content

Commit

Permalink
Merge branch 'master' into ncc-module
Browse files Browse the repository at this point in the history
  • Loading branch information
imrannayer authored Sep 23, 2024
2 parents 51db90a + 8abb57b commit 8515030
Show file tree
Hide file tree
Showing 34 changed files with 77 additions and 61 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## [9.2.0](https://github.com/terraform-google-modules/terraform-google-network/compare/v9.1.0...v9.2.0) (2024-08-29)


### Features

* Change serverless-connector input type and update metadata ([#568](https://github.com/terraform-google-modules/terraform-google-network/issues/568)) ([830b09c](https://github.com/terraform-google-modules/terraform-google-network/commit/830b09c7566f32cbbbf25d557912e5013357a43e))
* **deps:** Update Terraform Google Provider to v6 (major) ([#574](https://github.com/terraform-google-modules/terraform-google-network/issues/574)) ([c90da25](https://github.com/terraform-google-modules/terraform-google-network/commit/c90da2594f488ad0c433931deb29bf9d96cb76a5))

## [9.1.0](https://github.com/terraform-google-modules/terraform-google-network/compare/v9.0.0...v9.1.0) (2024-04-15)


Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ You can go to the [examples](./examples/) folder, however the usage of the modul
```hcl
module "vpc" {
source = "terraform-google-modules/network/google"
version = "~> 9.1"
version = "~> 9.2"
project_id = "<PROJECT ID>"
network_name = "example-vpc"
Expand Down
2 changes: 1 addition & 1 deletion metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:
source:
repo: https://github.com/terraform-google-modules/terraform-google-network.git
sourceType: git
version: 9.1.0
version: 9.2.0
actuationTool:
flavor: Terraform
version: ">= 1.3"
Expand Down
2 changes: 1 addition & 1 deletion modules/fabric-net-firewall/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
repo: https://github.com/terraform-google-modules/terraform-google-network.git
sourceType: git
dir: /modules/fabric-net-firewall
version: 9.1.0
version: 9.2.0
actuationTool:
flavor: Terraform
version: ">= 1.3"
Expand Down
4 changes: 2 additions & 2 deletions modules/fabric-net-firewall/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ terraform {
required_providers {
google = {
source = "hashicorp/google"
version = ">= 2.12, < 6"
version = ">= 2.12, < 7"
}
}

provider_meta "google" {
module_name = "blueprints/terraform/terraform-google-network:fabric-net-firewall/v9.1.0"
module_name = "blueprints/terraform/terraform-google-network:fabric-net-firewall/v9.2.0"
}
}
2 changes: 1 addition & 1 deletion modules/fabric-net-svpc-access/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
repo: https://github.com/terraform-google-modules/terraform-google-network.git
sourceType: git
dir: /modules/fabric-net-svpc-access
version: 9.1.0
version: 9.2.0
actuationTool:
flavor: Terraform
version: ">= 0.13.0"
Expand Down
8 changes: 4 additions & 4 deletions modules/fabric-net-svpc-access/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,18 @@ terraform {
required_providers {
google = {
source = "hashicorp/google"
version = ">= 2.12, < 6"
version = ">= 2.12, < 7"
}
google-beta = {
source = "hashicorp/google-beta"
version = ">= 2.12, < 6"
version = ">= 2.12, < 7"
}
}

provider_meta "google" {
module_name = "blueprints/terraform/terraform-google-network:fabric-net-svpc-access/v9.1.0"
module_name = "blueprints/terraform/terraform-google-network:fabric-net-svpc-access/v9.2.0"
}
provider_meta "google-beta" {
module_name = "blueprints/terraform/terraform-google-network:fabric-net-svpc-access/v9.1.0"
module_name = "blueprints/terraform/terraform-google-network:fabric-net-svpc-access/v9.2.0"
}
}
2 changes: 1 addition & 1 deletion modules/firewall-rules/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
repo: https://github.com/terraform-google-modules/terraform-google-network.git
sourceType: git
dir: /modules/firewall-rules
version: 9.1.0
version: 9.2.0
actuationTool:
flavor: Terraform
version: ">= 1.3.0"
Expand Down
4 changes: 2 additions & 2 deletions modules/firewall-rules/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ terraform {
required_providers {
google = {
source = "hashicorp/google"
version = ">= 3.33, < 6"
version = ">= 3.33, < 7"
}
}

provider_meta "google" {
module_name = "blueprints/terraform/terraform-google-network:firewall-rules/v9.1.0"
module_name = "blueprints/terraform/terraform-google-network:firewall-rules/v9.2.0"
}
}
2 changes: 1 addition & 1 deletion modules/hierarchical-firewall-policy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ There are examples included for [hierarchical firewall policy](../../examples/hi
```hcl
module "firewal_policy" {
source = "terraform-google-modules/network/google//modules/hierarchical-firewall-policy"
version = "~> 9.1"
version = "~> 9.2"
parent_node = "folders/123456789012"
policy_name = "test-policy"
Expand Down
2 changes: 1 addition & 1 deletion modules/hierarchical-firewall-policy/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
repo: https://github.com/terraform-google-modules/terraform-google-network.git
sourceType: git
dir: /modules/hierarchical-firewall-policy
version: 9.1.0
version: 9.2.0
actuationTool:
flavor: Terraform
version: ">= 1.3.0"
Expand Down
6 changes: 3 additions & 3 deletions modules/hierarchical-firewall-policy/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ terraform {
required_providers {
google = {
source = "hashicorp/google"
version = ">= 4.64, < 6"
version = ">= 4.64, < 7"
}
google-beta = {
source = "hashicorp/google-beta"
version = ">= 4.64, < 6"
version = ">= 4.64, < 7"
}
}

provider_meta "google" {
module_name = "blueprints/terraform/terraform-google-network:hierarchical-firewall-policy/v9.1.0"
module_name = "blueprints/terraform/terraform-google-network:hierarchical-firewall-policy/v9.2.0"
}
}
2 changes: 1 addition & 1 deletion modules/network-firewall-policy/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
repo: https://github.com/terraform-google-modules/terraform-google-network.git
sourceType: git
dir: /modules/network-firewall-policy
version: 9.1.0
version: 9.2.0
actuationTool:
flavor: Terraform
version: ">= 1.3.0"
Expand Down
6 changes: 3 additions & 3 deletions modules/network-firewall-policy/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ terraform {
required_providers {
google = {
source = "hashicorp/google"
version = ">= 4.64, < 6"
version = ">= 4.64, < 7"
}
google-beta = {
source = "hashicorp/google-beta"
version = ">= 4.64, < 6"
version = ">= 4.64, < 7"
}
}

provider_meta "google" {
module_name = "blueprints/terraform/terraform-google-network:network-firewall-policy/v9.1.0"
module_name = "blueprints/terraform/terraform-google-network:network-firewall-policy/v9.2.0"
}
}
2 changes: 1 addition & 1 deletion modules/network-peering/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
repo: https://github.com/terraform-google-modules/terraform-google-network.git
sourceType: git
dir: /modules/network-peering
version: 9.1.0
version: 9.2.0
actuationTool:
flavor: Terraform
version: ">= 0.13.0"
Expand Down
6 changes: 3 additions & 3 deletions modules/network-peering/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ terraform {
required_providers {
google = {
source = "hashicorp/google"
version = ">= 4.65, < 6"
version = ">= 4.65, < 7"
}
google-beta = {
source = "hashicorp/google-beta"
version = ">= 4.65, < 6"
version = ">= 4.65, < 7"
}
random = {
source = "hashicorp/random"
Expand All @@ -37,6 +37,6 @@ terraform {
}

provider_meta "google" {
module_name = "blueprints/terraform/terraform-google-network:network-peering/v9.1.0"
module_name = "blueprints/terraform/terraform-google-network:network-peering/v9.2.0"
}
}
1 change: 1 addition & 0 deletions modules/private-service-connect/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ If you have a firewall rule blocking egress traffic, you will need to configure
| private\_service\_connect\_ip | The internal IP to be used for the private service connect. | `string` | n/a | yes |
| private\_service\_connect\_name | Private Service Connect endpoint name. Defaults to `global-psconnect-ip` | `string` | `"global-psconnect-ip"` | no |
| project\_id | Project ID for Private Service Connect. | `string` | n/a | yes |
| psc\_global\_access | This is used in PSC consumer ForwardingRule to control whether the PSC endpoint can be accessed from another region. Defaults to `false` | `bool` | `false` | no |
| service\_directory\_namespace | Service Directory namespace to register the forwarding rule under. | `string` | `null` | no |
| service\_directory\_region | Service Directory region to register this global forwarding rule under. Defaults to `us-central1` if not defined. | `string` | `null` | no |

Expand Down
15 changes: 8 additions & 7 deletions modules/private-service-connect/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,14 @@ resource "google_compute_global_address" "private_service_connect" {
}

resource "google_compute_global_forwarding_rule" "forwarding_rule_private_service_connect" {
provider = google-beta
project = var.project_id
name = var.forwarding_rule_name
target = var.forwarding_rule_target
network = var.network_self_link
ip_address = google_compute_global_address.private_service_connect.id
load_balancing_scheme = ""
provider = google-beta
project = var.project_id
name = var.forwarding_rule_name
target = var.forwarding_rule_target
network = var.network_self_link
ip_address = google_compute_global_address.private_service_connect.id
load_balancing_scheme = ""
allow_psc_global_access = var.psc_global_access

dynamic "service_directory_registrations" {
for_each = var.service_directory_namespace != null || var.service_directory_region != null ? [1] : []
Expand Down
2 changes: 1 addition & 1 deletion modules/private-service-connect/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
repo: https://github.com/terraform-google-modules/terraform-google-network.git
sourceType: git
dir: /modules/private-service-connect
version: 9.1.0
version: 9.2.0
actuationTool:
flavor: Terraform
version: ">= 0.13"
Expand Down
6 changes: 6 additions & 0 deletions modules/private-service-connect/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,9 @@ variable "service_directory_region" {
type = string
default = null
}

variable "psc_global_access" {
description = "This is used in PSC consumer ForwardingRule to control whether the PSC endpoint can be accessed from another region. Defaults to `false`"
type = bool
default = false
}
8 changes: 4 additions & 4 deletions modules/private-service-connect/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,19 @@ terraform {
required_providers {
google = {
source = "hashicorp/google"
version = ">= 5.8, < 6"
version = ">= 5.8, < 7"
}
google-beta = {
source = "hashicorp/google-beta"
version = ">= 5.8, < 6"
version = ">= 5.8, < 7"
}
}

provider_meta "google" {
module_name = "blueprints/terraform/terraform-google-network:private-service-connect/v9.1.0"
module_name = "blueprints/terraform/terraform-google-network:private-service-connect/v9.2.0"
}

provider_meta "google-beta" {
module_name = "blueprints/terraform/terraform-google-network:private-service-connect/v9.1.0"
module_name = "blueprints/terraform/terraform-google-network:private-service-connect/v9.2.0"
}
}
2 changes: 1 addition & 1 deletion modules/routes-beta/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
repo: https://github.com/terraform-google-modules/terraform-google-network.git
sourceType: git
dir: /modules/routes-beta
version: 9.1.0
version: 9.2.0
actuationTool:
flavor: Terraform
version: ">= 0.13.0"
Expand Down
4 changes: 2 additions & 2 deletions modules/routes-beta/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ terraform {
required_providers {
google-beta = {
source = "hashicorp/google-beta"
version = ">= 3.0, < 6"
version = ">= 3.0, < 7"
}
}

provider_meta "google-beta" {
module_name = "blueprints/terraform/terraform-google-network:routes-beta/v9.1.0"
module_name = "blueprints/terraform/terraform-google-network:routes-beta/v9.2.0"
}
}
2 changes: 1 addition & 1 deletion modules/routes/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
repo: https://github.com/terraform-google-modules/terraform-google-network.git
sourceType: git
dir: /modules/routes
version: 9.1.0
version: 9.2.0
actuationTool:
flavor: Terraform
version: ">= 0.13.0"
Expand Down
4 changes: 2 additions & 2 deletions modules/routes/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ terraform {
required_providers {
google = {
source = "hashicorp/google"
version = ">= 3.83, < 6"
version = ">= 3.83, < 7"
}
}

provider_meta "google" {
module_name = "blueprints/terraform/terraform-google-network:routes/v9.1.0"
module_name = "blueprints/terraform/terraform-google-network:routes/v9.2.0"
}
}
2 changes: 1 addition & 1 deletion modules/subnets-beta/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
repo: https://github.com/terraform-google-modules/terraform-google-network.git
sourceType: git
dir: /modules/subnets-beta
version: 9.1.0
version: 9.2.0
actuationTool:
flavor: Terraform
version: ">= 0.13.0"
Expand Down
4 changes: 2 additions & 2 deletions modules/subnets-beta/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ terraform {
required_providers {
google-beta = {
source = "hashicorp/google-beta"
version = ">= 2.19, < 6"
version = ">= 2.19, < 7"
}
}

provider_meta "google-beta" {
module_name = "blueprints/terraform/terraform-google-network:subnets-beta/v9.1.0"
module_name = "blueprints/terraform/terraform-google-network:subnets-beta/v9.2.0"
}
}
2 changes: 1 addition & 1 deletion modules/subnets/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
repo: https://github.com/terraform-google-modules/terraform-google-network.git
sourceType: git
dir: /modules/subnets
version: 9.1.0
version: 9.2.0
actuationTool:
flavor: Terraform
version: ">= 0.13.0"
Expand Down
4 changes: 2 additions & 2 deletions modules/subnets/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ terraform {
required_providers {
google = {
source = "hashicorp/google"
version = ">= 4.25.0, < 6"
version = ">= 4.25.0, < 7"
}
}

provider_meta "google" {
module_name = "blueprints/terraform/terraform-google-network:subnets/v9.1.0"
module_name = "blueprints/terraform/terraform-google-network:subnets/v9.2.0"
}
}
2 changes: 1 addition & 1 deletion modules/vpc-serverless-connector-beta/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
repo: https://github.com/terraform-google-modules/terraform-google-network.git
sourceType: git
dir: /modules/vpc-serverless-connector-beta
version: 9.1.0
version: 9.2.0
actuationTool:
flavor: Terraform
version: ">= 0.13.0"
Expand Down
4 changes: 2 additions & 2 deletions modules/vpc-serverless-connector-beta/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ terraform {
required_providers {
google-beta = {
source = "hashicorp/google-beta"
version = ">= 3.62, < 6"
version = ">= 3.62, < 7"
}
}

provider_meta "google-beta" {
module_name = "blueprints/terraform/terraform-google-network:vpc-serverless-connector-beta/v9.1.0"
module_name = "blueprints/terraform/terraform-google-network:vpc-serverless-connector-beta/v9.2.0"
}
}
Loading

0 comments on commit 8515030

Please sign in to comment.