Skip to content

Commit 0938dec

Browse files
authored
feat: add time_zone for mssql (#488)
1 parent ab409eb commit 0938dec

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

modules/mssql/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ The following dependency must be available for SQL Server module:
4545
| secondary\_zone | The preferred zone for the secondary/failover instance, it should be something like: `us-central1-a`, `us-east1-c`. | `string` | `null` | no |
4646
| sql\_server\_audit\_config | SQL server audit config settings. | `map(string)` | `{}` | no |
4747
| tier | The tier for the master instance. | `string` | `"db-custom-2-3840"` | no |
48+
| time\_zone | The time zone for SQL instance. | `string` | `null` | no |
4849
| update\_timeout | The optional timeout that is applied to limit long database updates. | `string` | `"30m"` | no |
4950
| user\_labels | The key/value labels for the master instances. | `map(string)` | `{}` | no |
5051
| user\_name | The name of the default user | `string` | `"default"` | no |

modules/mssql/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ resource "google_sql_database_instance" "default" {
105105
disk_size = var.disk_size
106106
disk_type = var.disk_type
107107
pricing_plan = var.pricing_plan
108+
time_zone = var.time_zone
108109
dynamic "database_flags" {
109110
for_each = var.database_flags
110111
content {

modules/mssql/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,3 +306,9 @@ variable "deletion_protection" {
306306
type = bool
307307
default = true
308308
}
309+
310+
variable "time_zone" {
311+
description = "The time zone for SQL instance."
312+
type = string
313+
default = null
314+
}

0 commit comments

Comments
 (0)