Skip to content

Commit fe60725

Browse files
authored
Merge branch 'main' into renovate/go-modules-andor-dev-tools
2 parents f8ca3d4 + 0d5d7f0 commit fe60725

File tree

10 files changed

+32
-12
lines changed

10 files changed

+32
-12
lines changed

.github/conventional-commit-lint.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2022-2023 Google LLC
1+
# Copyright 2022-2025 Google LLC
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414

1515
# NOTE: This file is automatically generated from:
16-
# https://github.com/GoogleCloudPlatform/cloud-foundation-toolkit/blob/master/infra/terraform/test-org/github
16+
# https://github.com/GoogleCloudPlatform/cloud-foundation-toolkit/blob/main/infra/terraform/test-org/github
1717

1818
enabled: true
1919
always_check_pr_title: true

.github/trusted-contribution.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2023 Google LLC
1+
# Copyright 2023-2025 Google LLC
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414

1515
# NOTE: This file is automatically generated from:
16-
# https://github.com/GoogleCloudPlatform/cloud-foundation-toolkit/blob/master/infra/terraform/test-org/github
16+
# https://github.com/GoogleCloudPlatform/cloud-foundation-toolkit/blob/main/infra/terraform/test-org/github
1717

1818
annotations:
1919
- type: comment

.github/workflows/lint.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2023 Google LLC
1+
# Copyright 2023-2025 Google LLC
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -13,15 +13,15 @@
1313
# limitations under the License.
1414

1515
# NOTE: This file is automatically generated from values at:
16-
# https://github.com/GoogleCloudPlatform/cloud-foundation-toolkit/blob/master/infra/terraform/test-org/org/locals.tf
16+
# https://github.com/GoogleCloudPlatform/cloud-foundation-toolkit/blob/main/infra/terraform/test-org/org/locals.tf
1717

1818
name: 'lint'
1919

2020
on:
2121
workflow_dispatch:
2222
pull_request:
2323
branches:
24-
- master
24+
- main
2525

2626
concurrency:
2727
group: '${{ github.workflow }}-${{ github.head_ref || github.ref }}'

.github/workflows/stale.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2022-2024 Google LLC
1+
# Copyright 2022-2025 Google LLC
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414

1515
# NOTE: This file is automatically generated from:
16-
# https://github.com/GoogleCloudPlatform/cloud-foundation-toolkit/blob/master/infra/terraform/test-org/github
16+
# https://github.com/GoogleCloudPlatform/cloud-foundation-toolkit/blob/main/infra/terraform/test-org/github
1717

1818
name: "Close stale issues"
1919
on:

CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# NOTE: This file is automatically generated from values at:
2-
# https://github.com/GoogleCloudPlatform/cloud-foundation-toolkit/blob/master/infra/terraform/test-org/org/locals.tf
2+
# https://github.com/GoogleCloudPlatform/cloud-foundation-toolkit/blob/main/infra/terraform/test-org/org/locals.tf
33

44
* @terraform-google-modules/cft-admins @imrannayer
55

docs/upgrading_to_vpn_v5.0.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Upgrading to v5.0.0
2+
3+
The v5.0 release contains backwards-incompatible changes.
4+
5+
This update requires upgrading the minimum provider version `6.21`.

modules/vpn_ha/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ module "vpn_ha" {
268268
|------|-------------|------|---------|:--------:|
269269
| create\_vpn\_gateway | create a VPN gateway | `bool` | `true` | no |
270270
| external\_vpn\_gateway\_description | An optional description of external VPN Gateway | `string` | `"Terraform managed external VPN gateway"` | no |
271+
| interconnect\_attachment | URL of the interconnect attachment resource. When the value of this field is present, the VPN Gateway will be used for IPsec-encrypted Cloud Interconnect. | `list(string)` | `[]` | no |
271272
| ipsec\_secret\_length | The lnegth the of shared secret for VPN tunnels | `number` | `8` | no |
272273
| keepalive\_interval | The interval in seconds between BGP keepalive messages that are sent to the peer. | `number` | `20` | no |
273274
| labels | Labels for vpn components | `map(string)` | `{}` | no |

modules/vpn_ha/main.tf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,14 @@ resource "google_compute_ha_vpn_gateway" "ha_gateway" {
4141
region = var.region
4242
network = var.network
4343
stack_type = var.stack_type
44+
labels = var.labels
45+
dynamic "vpn_interfaces" {
46+
for_each = { for idx, val in var.interconnect_attachment : idx => val }
47+
content {
48+
id = vpn_interfaces.key
49+
interconnect_attachment = vpn_interfaces.value
50+
}
51+
}
4452
}
4553

4654
resource "google_compute_external_vpn_gateway" "external_gateway" {

modules/vpn_ha/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ variable "stack_type" {
4444
default = "IPV4_ONLY"
4545
}
4646

47+
variable "interconnect_attachment" {
48+
description = "URL of the interconnect attachment resource. When the value of this field is present, the VPN Gateway will be used for IPsec-encrypted Cloud Interconnect."
49+
type = list(string)
50+
default = []
51+
}
52+
4753
variable "network" {
4854
description = "VPC used for the gateway and routes."
4955
type = string

modules/vpn_ha/versions.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ terraform {
1919
required_providers {
2020
google = {
2121
source = "hashicorp/google"
22-
version = ">= 5.7, < 7"
22+
version = ">= 6.21, < 7"
2323
}
2424
google-beta = {
2525
source = "hashicorp/google-beta"
26-
version = ">= 5.7, < 7"
26+
version = ">= 6.21, < 7"
2727
}
2828
random = {
2929
source = "hashicorp/random"

0 commit comments

Comments
 (0)