Skip to content

Commit

Permalink
fix: ignore disk_size when disk_autoresize is true (#36)
Browse files Browse the repository at this point in the history
* fix: ignore disk_size when disk_autoresize is true

* chore: ignore disk_size only for replica to allow initial size for master instance
  • Loading branch information
HeshamMeneisi authored Nov 28, 2023
1 parent c399ab5 commit 7a6f57e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/google_sql_database_instance/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ resource "google_sql_database_instance" "read_replica" {
settings {

tier = var.read_replica_settings_tier
disk_size = var.settings_disk_size
disk_size = var.settings_disk_autoresize ? null : var.settings_disk_size
disk_autoresize = var.settings_disk_autoresize
disk_type = var.settings_disk_type
deletion_protection_enabled = var.deletion_protection
Expand Down

0 comments on commit 7a6f57e

Please sign in to comment.