Skip to content

Commit 21e24cb

Browse files
committed
fix: add backup configuration location to mssql submodule
1 parent 1615d75 commit 21e24cb

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

modules/mssql/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ module "mssql" {
3737
| additional\_databases | A list of databases to be created in your cluster | <pre>list(object({<br> name = string<br> charset = string<br> collation = string<br> }))</pre> | `[]` | no |
3838
| 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> }))</pre> | `[]` | no |
3939
| availability\_type | The availability type for the Cloud SQL instance.This is only used to set up high availability for the MSSQL instance. Can be either `ZONAL` or `REGIONAL`. | `string` | `"ZONAL"` | no |
40-
| backup\_configuration | The database backup configuration. | <pre>object({<br> binary_log_enabled = bool<br> enabled = bool<br> point_in_time_recovery_enabled = bool<br> start_time = string<br> transaction_log_retention_days = string<br> retained_backups = number<br> retention_unit = string<br> })</pre> | <pre>{<br> "binary_log_enabled": null,<br> "enabled": false,<br> "point_in_time_recovery_enabled": null,<br> "retained_backups": null,<br> "retention_unit": null,<br> "start_time": null,<br> "transaction_log_retention_days": null<br>}</pre> | no |
40+
| backup\_configuration | The database backup configuration. | <pre>object({<br> binary_log_enabled = bool<br> enabled = bool<br> location = string<br> point_in_time_recovery_enabled = bool<br> start_time = string<br> transaction_log_retention_days = string<br> retained_backups = number<br> retention_unit = string<br> })</pre> | <pre>{<br> "binary_log_enabled": null,<br> "enabled": false,<br> "location": null,<br> "point_in_time_recovery_enabled": null,<br> "retained_backups": null,<br> "retention_unit": null,<br> "start_time": null,<br> "transaction_log_retention_days": null<br>}</pre> | no |
4141
| connector\_enforcement | Enforce that clients use the connector library | `bool` | `false` | no |
4242
| create\_timeout | The optional timeout that is applied to limit long database creates. | `string` | `"30m"` | no |
4343
| 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 |

modules/mssql/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ resource "google_sql_database_instance" "default" {
6969
content {
7070
binary_log_enabled = lookup(backup_configuration.value, "binary_log_enabled", null)
7171
enabled = lookup(backup_configuration.value, "enabled", null)
72+
location = lookup(backup_configuration.value, "location", null)
7273
start_time = lookup(backup_configuration.value, "start_time", null)
7374
point_in_time_recovery_enabled = lookup(backup_configuration.value, "point_in_time_recovery_enabled", null)
7475
transaction_log_retention_days = lookup(backup_configuration.value, "transaction_log_retention_days", null)

modules/mssql/variables.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ variable "backup_configuration" {
224224
type = object({
225225
binary_log_enabled = bool
226226
enabled = bool
227+
location = optional(string)
227228
point_in_time_recovery_enabled = bool
228229
start_time = string
229230
transaction_log_retention_days = string
@@ -233,6 +234,7 @@ variable "backup_configuration" {
233234
default = {
234235
binary_log_enabled = null
235236
enabled = false
237+
location = null
236238
point_in_time_recovery_enabled = null
237239
start_time = null
238240
transaction_log_retention_days = null

0 commit comments

Comments
 (0)