Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions google_cloudsql_postgres/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ module "postgres_database" {
| <a name="input_availability_type"></a> [availability\_type](#input\_availability\_type) | high availability (REGIONAL) or single zone (ZONAL) | `string` | `"REGIONAL"` | no |
| <a name="input_backup_configuration_enabled"></a> [backup\_configuration\_enabled](#input\_backup\_configuration\_enabled) | n/a | `bool` | `true` | no |
| <a name="input_backup_configuration_location"></a> [backup\_configuration\_location](#input\_backup\_configuration\_location) | n/a | `string` | `"us"` | no |
| <a name="input_backup_start_time"></a> [backup\_start\_time](#input\_backup\_start\_time) | HH:MM format time (UTC) indicating when the daily backup window should start. If null, Google Cloud selects a random start time. | `string` | `null` | no |
| <a name="input_component"></a> [component](#input\_component) | A logical component of an application | `string` | `"db"` | no |
| <a name="input_connector_enforcement"></a> [connector\_enforcement](#input\_connector\_enforcement) | Enables the enforcement of Cloud SQL Auth Proxy or Cloud SQL connectors for all the connections. If enabled, all the direct connections are rejected. | `string` | `null` | no |
| <a name="input_custom_database_name"></a> [custom\_database\_name](#input\_custom\_database\_name) | Use this field for custom database name. | `string` | `""` | no |
Expand Down
1 change: 1 addition & 0 deletions google_cloudsql_postgres/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ resource "google_sql_database_instance" "primary" {
enabled = var.backup_configuration_enabled
point_in_time_recovery_enabled = var.point_in_time_recovery_enabled
location = var.backup_configuration_location
start_time = var.backup_start_time

backup_retention_settings {
retained_backups = 30
Expand Down
6 changes: 6 additions & 0 deletions google_cloudsql_postgres/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ variable "backup_configuration_location" {
type = string
}

variable "backup_start_time" {
default = null
description = "HH:MM format time (UTC) indicating when the daily backup window should start. If null, Google Cloud selects a random start time."
type = string
}
Comment thread
stevejalim marked this conversation as resolved.

variable "component" {
default = "db"
description = "A logical component of an application"
Expand Down
Loading