Skip to content

Commit 7819bf5

Browse files
fix(deps)!: Update Terraform terraform-google-modules/vm/google to v13 (#221)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Andrew Peabody <andrewpeabody@google.com>
1 parent 5c223b8 commit 7819bf5

File tree

7 files changed

+18
-6
lines changed

7 files changed

+18
-6
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ These sections describe requirements for using this module.
3939

4040
The following dependencies must be available:
4141

42-
- [Terraform][terraform] >= v0.12
42+
- [Terraform][terraform] >= v1.3
4343
- [Terraform Provider for GCP][terraform-provider-gcp]
4444

4545
### APIs
@@ -95,7 +95,7 @@ If the user does not share the same domain as the org the bastion is in, you wil
9595
| preemptible | Allow the instance to be preempted | `bool` | `false` | no |
9696
| project | The project ID to deploy to | `string` | n/a | yes |
9797
| random\_role\_id | Enables role random id generation. | `bool` | `true` | no |
98-
| region | The region where the bastion instance template will live | `string` | `null` | no |
98+
| region | The region where the bastion instance template will live | `string` | `"us-central1"` | no |
9999
| resource\_manager\_tags | (Optional) A tag is a key-value pair that can be attached to a Google Cloud resource. You can use tags to conditionally allow or deny policies based on whether a resource has a specific tag. This value is not returned by the API. In Terraform, this value cannot be updated and changing it will recreate the resource. | `map(string)` | `null` | no |
100100
| scopes | List of scopes to attach to the bastion host | `list(string)` | <pre>[<br> "cloud-platform"<br>]</pre> | no |
101101
| service\_account\_email | If set, the service account and its permissions will not be created. The service account being passed in should have at least the roles listed in the `service_account_roles` variable so that logging and OS Login work as expected. | `string` | `""` | no |

docs/upgrading_to_v9.0.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Upgrading to terraform-google-bastion-host v9.x
2+
3+
The v9.0 release of Google Bastion Host is a backwards incompatible release.
4+
Below a list of the breaking changes and the migration instructions.
5+
6+
## ⚠ BREAKING CHANGES
7+
8+
* The `region` variable now defaults to `us-central1` rather than `null` for instance templates.
9+
* A minimum of Terraform v1.3 is now required.

examples/iap_tunneling/main.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,10 @@ resource "google_service_account" "vm_sa" {
3838
# A testing VM to allow OS Login + IAP tunneling.
3939
module "instance_template" {
4040
source = "terraform-google-modules/vm/google//modules/instance_template"
41-
version = "~> 12.0"
41+
version = "~> 13.0"
4242

4343
project_id = var.project_id
44+
region = "us-west1"
4445
machine_type = "n1-standard-1"
4546
subnetwork = google_compute_subnetwork.subnet.self_link
4647
service_account = {

examples/simple_example/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ module "iap_bastion" {
2020

2121
project = var.project_id
2222
zone = "us-west1-a"
23+
region = "us-west1"
2324
network = google_compute_network.network.self_link
2425
subnet = google_compute_subnetwork.subnet.self_link
2526
members = var.members

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ resource "google_service_account" "bastion_host" {
4444

4545
module "instance_template" {
4646
source = "terraform-google-modules/vm/google//modules/instance_template"
47-
version = "~> 12.0"
47+
version = "~> 13.0"
4848

4949
name_prefix = var.name_prefix
5050
project_id = var.project

modules/bastion-group/main.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ module "iap_bastion" {
3737
additional_networks = var.additional_networks
3838
additional_ports = var.additional_ports
3939
zone = var.zone
40+
region = var.region
4041
random_role_id = var.random_role_id
4142
fw_name_allow_ssh_from_iap = var.fw_name_allow_ssh_from_iap
4243
create_instance_from_template = false
@@ -45,7 +46,7 @@ module "iap_bastion" {
4546

4647
module "mig" {
4748
source = "terraform-google-modules/vm/google//modules/mig"
48-
version = "~> 12.0"
49+
version = "~> 13.0"
4950

5051
project_id = var.project
5152
region = var.region

variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ variable "region" {
177177
type = string
178178

179179
description = "The region where the bastion instance template will live"
180-
default = null
180+
default = "us-central1"
181181
}
182182

183183
variable "random_role_id" {

0 commit comments

Comments
 (0)