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/metadata.yaml
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -221,6 +221,10 @@ spec:
221
221
retention_unit: null
222
222
start_time: null
223
223
transaction_log_retention_days: null
224
+
- name: retain_backups_on_delete
225
+
description: When this parameter is set to true, Cloud SQL retains backups of the instance even after the instance is deleted. The ON_DEMAND backup will be retained until customer deletes the backup or the project. The AUTOMATED backup will be retained based on the backups retention setting.
226
+
varType: bool
227
+
defaultValue: false
224
228
- name: db_name
225
229
description: The name of the default database to create
Copy file name to clipboardExpand all lines: modules/mysql/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
@@ -50,6 +50,7 @@ module "mysql-db" {
50
50
| additional\_users | A list of users to be created in your cluster. A random password would be set for the user if the `random_password` variable is set. | <pre>list(object({<br> name = string<br> password = string<br> random_password = bool<br> type = string<br> host = string<br> }))</pre> |`[]`| no |
51
51
| availability\_type | The availability type for the master instance. Can be either `REGIONAL` or `null`. |`string`|`"REGIONAL"`| no |
52
52
| backup\_configuration | The backup\_configuration settings subblock for the database settings | <pre>object({<br> binary_log_enabled = optional(bool, false)<br> enabled = optional(bool, false)<br> start_time = optional(string)<br> location = optional(string)<br> transaction_log_retention_days = optional(string)<br> retained_backups = optional(number)<br> retention_unit = optional(string)<br> })</pre> |`{}`| no |
| connector\_enforcement | Enforce that clients use the connector library |`bool`|`false`| no |
54
55
| create\_timeout | The optional timout that is applied to limit long database creates. |`string`|`"30m"`| no |
55
56
| 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 |
@@ -94,7 +95,7 @@ module "mysql-db" {
94
95
| read\_replica\_deletion\_protection | Used to block Terraform from deleting replica SQL Instances. |`bool`|`false`| no |
95
96
| 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 |
96
97
| read\_replica\_name\_suffix | The optional suffix to add to the read instance name |`string`|`""`| no |
97
-
| 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 = optional(string)<br> edition = optional(string)<br> availability_type = optional(string)<br> zone = optional(string)<br> disk_type = optional(string)<br> disk_autoresize = optional(bool)<br> disk_autoresize_limit = optional(number)<br> disk_size = optional(string)<br> user_labels = map(string)<br> database_flags = list(object({<br> name = string<br> value = string<br> }))<br> backup_configuration = optional(object({<br> binary_log_enabled = bool<br> transaction_log_retention_days = string<br> }))<br> insights_config = optional(object({<br> query_plans_per_minute = number<br> query_string_length = number<br> record_application_tags = bool<br> record_client_address = bool<br> }))<br> ip_configuration = object({<br> authorized_networks = optional(list(map(string)), [])<br> ipv4_enabled = optional(bool)<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> })<br> encryption_key_name = optional(string)<br> data_cache_enabled = optional(bool)<br> }))</pre> | `[]` | no |
98
+
| 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 = optional(string)<br> edition = optional(string)<br> availability_type = optional(string)<br> zone = optional(string)<br> disk_type = optional(string)<br> disk_autoresize = optional(bool)<br> disk_autoresize_limit = optional(number)<br> disk_size = optional(string)<br> user_labels = map(string)<br> connection_pool_config = optional(object({<br> enabled = optional(bool, false)<br> flags = optional(list(object({<br> name = string<br> value = string<br> })), [])<br> }), null)<br> database_flags = list(object({<br> name = string<br> value = string<br> }))<br> backup_configuration = optional(object({<br> binary_log_enabled = bool<br> transaction_log_retention_days = string<br> }))<br> insights_config = optional(object({<br> query_plans_per_minute = number<br> query_string_length = number<br> record_application_tags = bool<br> record_client_address = bool<br> }))<br> ip_configuration = object({<br> authorized_networks = optional(list(map(string)), [])<br> ipv4_enabled = optional(bool)<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> })<br> encryption_key_name = optional(string)<br> data_cache_enabled = optional(bool)<br> }))</pre> | `[]` | no |
98
99
| region | The region of the Cloud SQL resources |`string`|`"us-central1"`| no |
99
100
| 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 |
100
101
| retain\_backups\_on\_delete | When this parameter is set to true, Cloud SQL retains backups of the instance even after the instance is deleted. The ON\_DEMAND backup will be retained until customer deletes the backup or the project. The AUTOMATED backup will be retained based on the backups retention setting. |`bool`|`false`| no |
Copy file name to clipboardExpand all lines: modules/mysql/metadata.yaml
+24-6Lines changed: 24 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -189,7 +189,7 @@ spec:
189
189
description: 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.
190
190
varType: string
191
191
- name: tier
192
-
description: The tier for the master instance, for ADC its defualt value will be db-perf-optimized-N-8 which is tier value for edtion ENTERPRISE_PLUS, if user wants to change the edition, he should chose compatible tier.
192
+
description: The tier for the master instance, for ADC its default value will be db-perf-optimized-N-8 which is tier value for edition ENTERPRISE_PLUS, if user wants to change the edition, he should chose compatible tier.
193
193
varType: string
194
194
defaultValue: db-n1-standard-1
195
195
- name: zone
@@ -267,7 +267,7 @@ spec:
267
267
}))
268
268
defaultValue: []
269
269
- name: backup_configuration
270
-
description: The backup_configuration settings subblock for the database setings
270
+
description: The backup_configuration settings subblock for the database settings
271
271
varType: |-
272
272
object({
273
273
binary_log_enabled = optional(bool, false)
@@ -338,6 +338,13 @@ spec:
338
338
disk_autoresize_limit = optional(number)
339
339
disk_size = optional(string)
340
340
user_labels = map(string)
341
+
connection_pool_config = optional(object({
342
+
enabled = optional(bool, false)
343
+
flags = optional(list(object({
344
+
name = string
345
+
value = string
346
+
})), [])
347
+
}), null)
341
348
database_flags = list(object({
342
349
name = string
343
350
value = string
@@ -421,6 +428,17 @@ spec:
421
428
description: The roles required by default database instance service account for integration with GCP services
0 commit comments