Skip to content

Commit 487397c

Browse files
authored
feat: add encryption_key_name to safer_mysql module (#185)
1 parent 9989892 commit 487397c

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

modules/safer_mysql/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ mysql -S $HOME/mysql_sockets/myproject:region:instance -u user -p
182182
| disk\_autoresize | Configuration to increase storage size | bool | `"true"` | no |
183183
| disk\_size | The disk size for the master instance | number | `"10"` | no |
184184
| disk\_type | The disk type for the master instance. | string | `"PD_SSD"` | no |
185+
| encryption\_key\_name | The full path to the encryption key used for the CMEK disk encryption | string | `"null"` | no |
185186
| maintenance\_window\_day | The day of week (1-7) for the master instance maintenance. | number | `"1"` | no |
186187
| maintenance\_window\_hour | The hour of day (0-23) maintenance window for the master instance maintenance. | number | `"23"` | no |
187188
| maintenance\_window\_update\_track | The update track of maintenance window for the master instance maintenance. Can be either `canary` or `stable`. | string | `"stable"` | no |

modules/safer_mysql/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ module "safer_mysql" {
3434
maintenance_window_hour = var.maintenance_window_hour
3535
maintenance_window_update_track = var.maintenance_window_update_track
3636
database_flags = var.database_flags
37+
encryption_key_name = var.encryption_key_name
3738

3839
deletion_protection = var.deletion_protection
3940

modules/safer_mysql/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,3 +273,9 @@ variable "read_replica_deletion_protection" {
273273
type = bool
274274
default = false
275275
}
276+
277+
variable "encryption_key_name" {
278+
description = "The full path to the encryption key used for the CMEK disk encryption"
279+
type = string
280+
default = null
281+
}

0 commit comments

Comments
 (0)