mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-10-04 17:51:11 +00:00
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.
This commit is contained in:
parent
7c0f207b69
commit
aca0825115
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user