You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/mssql/README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,6 +61,7 @@ module "mssql" {
61
61
| follow\_gae\_application | A Google App Engine application whose zone to remain in. Must be in the same region as this instance. |`string`|`null`| no |
62
62
| instance\_type | The type of the instance. The supported values are SQL\_INSTANCE\_TYPE\_UNSPECIFIED, CLOUD\_SQL\_INSTANCE, ON\_PREMISES\_INSTANCE and READ\_REPLICA\_INSTANCE. Set to READ\_REPLICA\_INSTANCE when primary\_instance\_name is provided |`string`|`"CLOUD_SQL_INSTANCE"`| no |
63
63
| ip\_configuration | The ip configuration for the Cloud SQL instances. | <pre>object({<br> authorized_networks = optional(list(map(string)), [])<br> ipv4_enabled = optional(bool)<br> private_network = optional(string)<br> allocated_ip_range = optional(string)<br> ssl_mode = optional(string)<br> })</pre> | <pre>{<br> "allocated_ip_range": null,<br> "authorized_networks": [],<br> "ipv4_enabled": true,<br> "private_network": null,<br> "ssl_mode": null<br>}</pre> | no |
64
+
| maintenance\_version | The current software version on the instance. This attribute can not be set during creation. Refer to available\_maintenance\_versions attribute to see what maintenance\_version are available for upgrade. When this attribute gets updated, it will cause an instance restart. Setting a maintenance\_version value that is older than the current one on the instance will be ignored |`string`|`null`| no |
64
65
| maintenance\_window\_day | The day of week (1-7) for the Cloud SQL maintenance. |`number`|`1`| no |
65
66
| maintenance\_window\_hour | The hour of day (0-23) maintenance window for the Cloud SQL maintenance. |`number`|`23`| no |
66
67
| maintenance\_window\_update\_track | The update track of maintenance window for the Cloud SQL maintenance.Can be either `canary` or `stable`. |`string`|`"canary"`| no |
description="The current software version on the instance. This attribute can not be set during creation. Refer to available_maintenance_versions attribute to see what maintenance_version are available for upgrade. When this attribute gets updated, it will cause an instance restart. Setting a maintenance_version value that is older than the current one on the instance will be ignored"
47
+
type=string
48
+
default=null
49
+
}
50
+
45
51
// required
46
52
variable"database_version" {
47
53
description="The database version to use: SQLSERVER_2017_STANDARD, SQLSERVER_2017_ENTERPRISE, SQLSERVER_2017_EXPRESS, or SQLSERVER_2017_WEB"
Copy file name to clipboardExpand all lines: modules/mysql/README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -78,6 +78,7 @@ module "mysql-db" {
78
78
| insights\_config | The insights\_config settings for the database. | <pre>object({<br> query_plans_per_minute = number<br> query_string_length = number<br> record_application_tags = bool<br> record_client_address = bool<br> })</pre> |`null`| no |
79
79
| instance\_type | Users can upgrade a read replica instance to a stand-alone Cloud SQL instance with the help of instance\_type. To promote, users have to set the instance\_type property as CLOUD\_SQL\_INSTANCE and remove/unset master\_instance\_name and replica\_configuration from instance configuration. This operation might cause your instance to restart. |`string`|`null`| no |
| maintenance\_version | The current software version on the instance. This attribute can not be set during creation. Refer to available\_maintenance\_versions attribute to see what maintenance\_version are available for upgrade. When this attribute gets updated, it will cause an instance restart. Setting a maintenance\_version value that is older than the current one on the instance will be ignored |`string`|`null`| no |
81
82
| maintenance\_window\_day | The day of week (1-7) for the master instance maintenance. |`number`|`1`| no |
82
83
| maintenance\_window\_hour | The hour of day (0-23) maintenance window for the master instance maintenance. |`number`|`23`| no |
83
84
| maintenance\_window\_update\_track | The update track of maintenance window for the master instance maintenance. Can be either `canary` or `stable`. |`string`|`"canary"`| no |
Copy file name to clipboardExpand all lines: modules/mysql/variables.tf
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -43,6 +43,12 @@ variable "database_version" {
43
43
type=string
44
44
}
45
45
46
+
variable"maintenance_version" {
47
+
description="The current software version on the instance. This attribute can not be set during creation. Refer to available_maintenance_versions attribute to see what maintenance_version are available for upgrade. When this attribute gets updated, it will cause an instance restart. Setting a maintenance_version value that is older than the current one on the instance will be ignored"
48
+
type=string
49
+
default=null
50
+
}
51
+
46
52
variable"availability_type" {
47
53
description="The availability type for the master instance. Can be either `REGIONAL` or `null`."
Copy file name to clipboardExpand all lines: modules/postgresql/README.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -127,7 +127,7 @@ module "pg" {
127
127
| database\_deletion\_policy | The deletion policy for the database. Setting ABANDON allows the resource to be abandoned rather than deleted. This is useful for Postgres, where databases cannot be deleted from the API if there are users other than cloudsqlsuperuser with access. Possible values are: "ABANDON". |`string`|`null`| no |
128
128
| database\_flags | The database flags for the Cloud SQL instance. See [more details](https://cloud.google.com/sql/docs/postgres/flags)| <pre>list(object({<br> name = string<br> value = string<br> }))</pre> |`[]`| no |
129
129
| database\_integration\_roles | The roles required by default database instance service account for integration with GCP services |`list(string)`|`[]`| no |
130
-
| database\_version | The database version to use |`string`| n/a | yes |
130
+
| database\_version | The database version to use. Can be 9\_6, 14, 15, 16, 17.|`string`| n/a | yes |
131
131
| db\_charset | The charset for the default database |`string`|`""`| no |
132
132
| db\_collation | The collation for the default database. Example: 'en\_US.UTF8' |`string`|`""`| no |
133
133
| db\_name | The name of the default database to create. This should be unique per Cloud SQL instance. |`string`|`"default"`| no |
@@ -150,6 +150,7 @@ module "pg" {
150
150
| insights\_config | The insights\_config settings for the database. | <pre>object({<br> query_plans_per_minute = optional(number, 5)<br> query_string_length = optional(number, 1024)<br> record_application_tags = optional(bool, false)<br> record_client_address = optional(bool, false)<br> })</pre> |`null`| no |
151
151
| instance\_type | The type of the instance. The supported values are SQL\_INSTANCE\_TYPE\_UNSPECIFIED, CLOUD\_SQL\_INSTANCE, ON\_PREMISES\_INSTANCE and READ\_REPLICA\_INSTANCE. Set to READ\_REPLICA\_INSTANCE if master\_instance\_name value is provided |`string`|`"CLOUD_SQL_INSTANCE"`| no |
152
152
| ip\_configuration | The ip configuration for the Cloud SQL instances. | <pre>object({<br> authorized_networks = optional(list(map(string)), [])<br> ipv4_enabled = optional(bool, true)<br> private_network = optional(string)<br> ssl_mode = optional(string)<br> allocated_ip_range = optional(string)<br> enable_private_path_for_google_cloud_services = optional(bool, false)<br> psc_enabled = optional(bool, false)<br> psc_allowed_consumer_projects = optional(list(string), [])<br> })</pre> |`{}`| no |
153
+
| maintenance\_version | The current software version on the instance. This attribute can not be set during creation. Refer to available\_maintenance\_versions attribute to see what maintenance\_version are available for upgrade. When this attribute gets updated, it will cause an instance restart. Setting a maintenance\_version value that is older than the current one on the instance will be ignored |`string`|`null`| no |
153
154
| maintenance\_window\_day | The day of week (1-7) for the Cloud SQL instance maintenance. |`number`|`1`| no |
154
155
| maintenance\_window\_hour | The hour of day (0-23) maintenance window for the Cloud SQL instance maintenance. |`number`|`23`| no |
155
156
| maintenance\_window\_update\_track | The update track of maintenance window for the Cloud SQL instance maintenance.Can be either `canary` or `stable`. |`string`|`"canary"`| no |
error_message="The specified database version is not a valid representaion of database version. Valid database versions should be like the following patterns:- \"9_6\", \"postgres_9_6\", \"POSTGRES_14\" or\"POSTGRES_15\""
46
+
error_message="The specified database version is not a valid representation of database version. Valid database versions should be like the following patterns:- \"9_6\", \"postgres_9_6\", \"14\", \"POSTGRES_14\", \"15\",\"POSTGRES_15\", \"16\", \"POSTGRES_16\" or \"17\", \"POSTGRES_17\""
47
47
}
48
48
}
49
49
50
+
variable"maintenance_version" {
51
+
description="The current software version on the instance. This attribute can not be set during creation. Refer to available_maintenance_versions attribute to see what maintenance_version are available for upgrade. When this attribute gets updated, it will cause an instance restart. Setting a maintenance_version value that is older than the current one on the instance will be ignored"
52
+
type=string
53
+
default=null
54
+
}
55
+
50
56
variable"availability_type" {
51
57
description="The availability type for the Cloud SQL instance.This is only used to set up high availability for the PostgreSQL instance. Can be either `ZONAL` or `REGIONAL`."
0 commit comments