File tree Expand file tree Collapse file tree 6 files changed +21
-3
lines changed Expand file tree Collapse file tree 6 files changed +21
-3
lines changed Original file line number Diff line number Diff line change
1
+ Terraform 0.13 Upgrade
2
+ ===
3
+
4
+ 1 . Use Terraform 0.12 to init, plan, and apply version 3.x of this module.
5
+ 2 . Use Terraform 0.13 to init, plan, and apply the same 3.x version.
6
+ 3 . Update this module to version 4.x.
7
+ 4 . Use Terraform 0.13 to init, plan, and apply 4.x.
8
+
1
9
Upgrade Procedure
2
10
===
3
11
Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ module "multinic-us-west1-v3" {
65
65
num_instances = var. num_instances
66
66
preemptible = var. preemptible
67
67
startup_script = var. startup_script
68
+ autoscale = var. num_instances == 0 ? false : true
68
69
69
70
project_id = local. project_id
70
71
region = " us-west1"
@@ -96,6 +97,7 @@ module "multinic-us-west2-v3" {
96
97
num_instances = var. num_instances
97
98
preemptible = var. preemptible
98
99
startup_script = var. startup_script
100
+ autoscale = var. num_instances == 0 ? false : true
99
101
100
102
project_id = local. project_id
101
103
region = " us-west2"
Original file line number Diff line number Diff line change
1
+ terraform {
2
+ required_providers {
3
+ google = {
4
+ source = " hashicorp/google"
5
+ }
6
+ }
7
+ required_version = " >= 0.13"
8
+ }
Original file line number Diff line number Diff line change 14
14
15
15
module "project" {
16
16
source = " terraform-google-modules/project-factory/google"
17
- version = " ~> 8 .0"
17
+ version = " ~> 10 .0"
18
18
19
19
name = var. project_name
20
20
random_project_id = true
Original file line number Diff line number Diff line change 18
18
/* * Manage the VPC network */
19
19
module "vpc" {
20
20
source = " terraform-google-modules/network/google//modules/vpc"
21
- version = " ~> 2.0 .0"
21
+ version = " ~> 3 .0"
22
22
23
23
project_id = var. project_id
24
24
network_name = var. network_name
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ module "startup-script-lib" {
30
30
}
31
31
32
32
data "template_file" "startup-script-config" {
33
- template = " ${ file (" ${ path . module } /templates/startup-script-config.tpl" )} "
33
+ template = file (" ${ path . module } /templates/startup-script-config.tpl" )
34
34
}
35
35
36
36
resource google_compute_instance_template "multinic" {
You can’t perform that action at this time.
0 commit comments