Skip to content

Commit

Permalink
feat: add time_zone for mssql (#488)
Browse files Browse the repository at this point in the history
  • Loading branch information
vponnam authored Jul 18, 2023
1 parent ab409eb commit 0938dec
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/mssql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ The following dependency must be available for SQL Server module:
| secondary\_zone | The preferred zone for the secondary/failover instance, it should be something like: `us-central1-a`, `us-east1-c`. | `string` | `null` | no |
| sql\_server\_audit\_config | SQL server audit config settings. | `map(string)` | `{}` | no |
| tier | The tier for the master instance. | `string` | `"db-custom-2-3840"` | no |
| time\_zone | The time zone for SQL instance. | `string` | `null` | no |
| update\_timeout | The optional timeout that is applied to limit long database updates. | `string` | `"30m"` | no |
| user\_labels | The key/value labels for the master instances. | `map(string)` | `{}` | no |
| user\_name | The name of the default user | `string` | `"default"` | no |
Expand Down
1 change: 1 addition & 0 deletions modules/mssql/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ resource "google_sql_database_instance" "default" {
disk_size = var.disk_size
disk_type = var.disk_type
pricing_plan = var.pricing_plan
time_zone = var.time_zone
dynamic "database_flags" {
for_each = var.database_flags
content {
Expand Down
6 changes: 6 additions & 0 deletions modules/mssql/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -306,3 +306,9 @@ variable "deletion_protection" {
type = bool
default = true
}

variable "time_zone" {
description = "The time zone for SQL instance."
type = string
default = null
}

0 comments on commit 0938dec

Please sign in to comment.