terraform-google-modules / terraform-google-sql-db

Creates a Cloud SQL database instance
https://registry.terraform.io/modules/terraform-google-modules/sql-db/google
Apache License 2.0
263 stars 422 forks source link

Random password resource should not always be created #595

Closed RonaldGalea closed 4 months ago

RonaldGalea commented 4 months ago

TL;DR

Creating a default user is controlled by var.enable_default_user. However, even when disabled, the random password of the user is still created, even if unused.

Expected behavior

Disabling the user should also disable creating the password

Observed behavior

No response

Terraform Configuration

module "sql" {
  source                      = "GoogleCloudPlatform/sql-db/google//modules/mysql"
  version                     = "~> 20.0"
  enable_default_db           = false
  enable_default_user         = false
}

Terraform Version

Terraform v1.7.5
on darwin_arm64

Additional information

No response