From aca08251154b6c4c6e9632bba3161196cfd2d38b Mon Sep 17 00:00:00 2001 From: Evan Brown Date: Tue, 31 Jan 2017 22:21:11 -0800 Subject: [PATCH] providers/google: No default root user for SQL Cloud SQL Gen 2 instances come with a default 'root'@'%' user on creation. This change automatically deletes that user after creation. A Terraform user must use the google_sql_user to create a user with appropriate host and password. --- r/sql_database_instance.html.markdown | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/r/sql_database_instance.html.markdown b/r/sql_database_instance.html.markdown index 817ed6c7..1f1f73cd 100644 --- a/r/sql_database_instance.html.markdown +++ b/r/sql_database_instance.html.markdown @@ -10,6 +10,12 @@ description: |- Creates a new Google SQL Database Instance. For more information, see the [official documentation](https://cloud.google.com/sql/), or the [JSON API](https://cloud.google.com/sql/docs/admin-api/v1beta4/instances). +~> **NOTE on `google_sql_database_instance`:** - Second-generation instances include a +default 'root'@'%' user with no password. This user will be deleted by Terraform on +instance creation. You should use a `google_sql_user` to define a customer user with +a restricted host and strong password. + + ## Example Usage Example creating a SQL Database.