Skip to content

Commit 01671c9

Browse files
committed
fix: add safer_mysql
1 parent 60a3d11 commit 01671c9

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

modules/safer_mysql/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ module "safer-mysql-db" {
265265
| enable\_default\_user | Enable or disable the creation of the default user | `bool` | `true` | no |
266266
| encryption\_key\_name | The full path to the encryption key used for the CMEK disk encryption | `string` | `null` | no |
267267
| failover\_dr\_replica\_name | If the instance is a primary instance, then this field identifies the disaster recovery (DR) replica. The standard format of this field is "your-project:your-instance". You can also set this field to "your-instance", but cloud SQL backend will convert it to the aforementioned standard format. | `string` | `null` | no |
268+
| final\_backup\_config | The final\_backup\_config settings for the database. | <pre>object({<br> enabled = bool<br> retention_days = number<br> })</pre> | `null` | no |
268269
| 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 |
269270
| iam\_users | A list of IAM users to be created in your CloudSQL instance. iam.users.type can be CLOUD\_IAM\_USER, CLOUD\_IAM\_SERVICE\_ACCOUNT, CLOUD\_IAM\_GROUP and is required for type CLOUD\_IAM\_GROUP (IAM groups) | <pre>list(object({<br> id = string,<br> email = string,<br> type = optional(string)<br> }))</pre> | `[]` | no |
270271
| 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 |

modules/safer_mysql/main.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ module "safer_mysql" {
5555

5656
insights_config = var.insights_config
5757

58+
final_backup_config = var.final_backup_config
59+
5860
ip_configuration = {
5961
ipv4_enabled = var.assign_public_ip
6062
# We never set authorized networks, we need all connections via the

modules/safer_mysql/variables.tf

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,3 +417,12 @@ variable "insights_config" {
417417
})
418418
default = null
419419
}
420+
421+
variable "final_backup_config" {
422+
description = "The final_backup_config settings for the database."
423+
type = object({
424+
enabled = bool
425+
retention_days = number
426+
})
427+
default = null
428+
}

0 commit comments

Comments
 (0)