Cloud SQL user password can be optional (#1056)

This commit is contained in:
Vaidas Jablonskis 2018-02-07 19:59:23 +00:00 committed by Vincent Roseberry
parent e51a2997ab
commit 1b042a3b18
3 changed files with 2 additions and 3 deletions

View File

@ -43,7 +43,7 @@ func resourceSqlUser() *schema.Resource {
"password": &schema.Schema{
Type: schema.TypeString,
Required: true,
Optional: true,
Sensitive: true,
},

View File

@ -140,7 +140,6 @@ func testGoogleSqlUser_basic2(instance, user string) string {
name = "user%s"
instance = "${google_sql_database_instance.instance.name}"
host = "google.com"
password = "oops"
}
`, instance, user)
}

View File

@ -48,7 +48,7 @@ The following arguments are supported:
* `name` - (Required) The name of the user. Changing this forces a new resource
to be created.
* `password` - (Required) The users password. Can be updated.
* `password` - (Optional) The users password. Can be updated.
- - -