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
@@ -29,6 +29,7 @@ The following dependency must be available for SQL Server module:
29
29
| disk\_autoresize\_limit | The maximum size to which storage can be auto increased. |`number`|`0`| no |
30
30
| disk\_size | The disk size for the master instance. |`number`|`10`| no |
31
31
| disk\_type | The disk type for the master instance. |`string`|`"PD_SSD"`| no |
32
+
| edition | The edition of the instance, can be ENTERPRISE or ENTERPRISE\_PLUS. |`string`|`null`| no |
32
33
| encryption\_key\_name | The full path to the encryption key used for the CMEK disk encryption |`string`|`null`| no |
33
34
| 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 |
34
35
| ip\_configuration | The ip configuration for the master instances. | <pre>object({<br> authorized_networks = list(map(string))<br> ipv4_enabled = bool<br> private_network = string<br> require_ssl = bool<br> allocated_ip_range = string<br> })</pre> | <pre>{<br> "allocated_ip_range": null,<br> "authorized_networks": [],<br> "ipv4_enabled": true,<br> "private_network": null,<br> "require_ssl": null<br>}</pre> | no |
| connector\_enforcement | Enforce that clients use the connector library |`bool`|`false`| no |
16
16
| create\_timeout | The optional timout that is applied to limit long database creates. |`string`|`"30m"`| no |
17
+
| data\_cache\_enabled | Whether data cache is enabled for the instance. Defaults to false. Feature is only available for ENTERPRISE\_PLUS tier and supported database\_versions |`bool`|`false`| no |
17
18
| database\_flags | List of Cloud SQL flags that are applied to the database server. See [more details](https://cloud.google.com/sql/docs/mysql/flags)| <pre>list(object({<br> name = string<br> value = string<br> }))</pre> |`[]`| no |
18
19
| database\_version | The database version to use |`string`| n/a | yes |
19
20
| db\_charset | The charset for the default database |`string`|`""`| no |
| read\_replica\_deletion\_protection | Used to block Terraform from deleting replica SQL Instances. |`bool`|`false`| no |
48
50
| read\_replica\_deletion\_protection\_enabled | Enables protection of a read replica from accidental deletion across all surfaces (API, gcloud, Cloud Console and Terraform). |`bool`|`false`| no |
49
51
| read\_replica\_name\_suffix | The optional suffix to add to the read instance name |`string`|`""`| no |
50
-
| read\_replicas | List of read replicas to create. Encryption key is required for replica in different region. For replica in same region as master set encryption\_key\_name = null | <pre>list(object({<br> name = string<br> name_override = optional(string)<br> tier = string<br> zone = string<br> availability_type = string<br> disk_type = string<br> disk_autoresize = bool<br> disk_autoresize_limit = number<br> disk_size = string<br> user_labels = map(string)<br> database_flags = list(object({<br> name = string<br> value = string<br> }))<br> insights_config = optional(object({<br> query_string_length = number<br> record_application_tags = bool<br> record_client_address = bool<br> }))<br> ip_configuration = object({<br> authorized_networks = list(map(string))<br> ipv4_enabled = bool<br> private_network = string<br> require_ssl = bool<br> allocated_ip_range = string<br> enable_private_path_for_google_cloud_services = optional(bool)<br> })<br> encryption_key_name = string<br> }))</pre> | `[]` | no |
52
+
| read\_replicas | List of read replicas to create. Encryption key is required for replica in different region. For replica in same region as master set encryption\_key\_name = null | <pre>list(object({<br> name = string<br> name_override = optional(string)<br> tier = string<br> edition = optional(string)<br> zone = string<br> availability_type = string<br> disk_type = string<br> disk_autoresize = bool<br> disk_autoresize_limit = number<br> disk_size = string<br> user_labels = map(string)<br> database_flags = list(object({<br> name = string<br> value = string<br> }))<br> insights_config = optional(object({<br> query_string_length = number<br> record_application_tags = bool<br> record_client_address = bool<br> }))<br> ip_configuration = object({<br> authorized_networks = list(map(string))<br> ipv4_enabled = bool<br> private_network = string<br> require_ssl = bool<br> allocated_ip_range = string<br> enable_private_path_for_google_cloud_services = optional(bool)<br> })<br> encryption_key_name = string<br> }))</pre> | `[]` | no |
51
53
| region | The region of the Cloud SQL resources |`string`|`"us-central1"`| no |
52
54
| replica\_database\_version | The read replica database version to use. This var should only be used during a database update. The update sequence 1. read-replica 2. master, setting this to an updated version will cause the replica to update, then you may update the master with the var database\_version and remove this field after update is complete |`string`|`""`| no |
53
55
| root\_password | Mysql password for the root user. If not set, a random one will be generated and available in the root\_password output variable. |`string`|`""`| no |
Copy file name to clipboardExpand all lines: modules/mysql/variables.tf
+13Lines changed: 13 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -56,6 +56,12 @@ variable "tier" {
56
56
default="db-n1-standard-1"
57
57
}
58
58
59
+
variable"edition" {
60
+
description="The edition of the instance, can be ENTERPRISE or ENTERPRISE_PLUS."
61
+
type=string
62
+
default=null
63
+
}
64
+
59
65
variable"zone" {
60
66
description="The zone for the master instance, it should be something like: `us-central1-a`, `us-east1-c`."
61
67
type=string
@@ -161,6 +167,12 @@ variable "user_labels" {
161
167
description="The key/value labels for the master instances."
162
168
}
163
169
170
+
variable"data_cache_enabled" {
171
+
description="Whether data cache is enabled for the instance. Defaults to false. Feature is only available for ENTERPRISE_PLUS tier and supported database_versions"
172
+
type=bool
173
+
default=false
174
+
}
175
+
164
176
variable"deny_maintenance_period" {
165
177
description="The Deny Maintenance Period fields to prevent automatic maintenance from occurring during a 90-day time period. See [more details](https://cloud.google.com/sql/docs/mysql/maintenance)"
0 commit comments