-
Notifications
You must be signed in to change notification settings - Fork 426
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable root_password for postgres #214
Comments
According to
This is provider or API limitation and cant be solved by this module. |
This statement applies only to MySQL 2nd Generation instances. Postgres instances do create a postgres user, this is not deleted by Terraform currently. This request was entered to allow the root_password attribute to update this default postgres user as it does for SQL Server. |
It still applies to provider not this module. Right now provider uses |
right, my error - I will direct this to the provider site. Thanks! |
I think the This PR should allow it: #521 |
Per https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/sql_database_instance#root_password:
(Optional) Initial root password. Required for MS SQL Server, ignored by MySQL and PostgreSQL.
The creation of a CloudSQL Postgres instance automatically creates a postgres user, whose password can be set through API per https://cloud.google.com/sql/docs/postgres/create-manage-users#rest-v1beta4
Right now in order to create a root user via Terraform, a separate cloudsql_database_user resource must be created with root privileges.
Being able to set the postgres user password through the existing root_password attribute seems like a better approach, as it reduces the number of users being given administrative privileges to the database instance.
The text was updated successfully, but these errors were encountered: