mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-07-24 02:26:00 +00:00
Cloud SQL user password can be optional (#1056)
This commit is contained in:
parent
e51a2997ab
commit
1b042a3b18
|
@ -43,7 +43,7 @@ func resourceSqlUser() *schema.Resource {
|
||||||
|
|
||||||
"password": &schema.Schema{
|
"password": &schema.Schema{
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Required: true,
|
Optional: true,
|
||||||
Sensitive: true,
|
Sensitive: true,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -140,7 +140,6 @@ func testGoogleSqlUser_basic2(instance, user string) string {
|
||||||
name = "user%s"
|
name = "user%s"
|
||||||
instance = "${google_sql_database_instance.instance.name}"
|
instance = "${google_sql_database_instance.instance.name}"
|
||||||
host = "google.com"
|
host = "google.com"
|
||||||
password = "oops"
|
|
||||||
}
|
}
|
||||||
`, instance, user)
|
`, instance, user)
|
||||||
}
|
}
|
||||||
|
|
|
@ -48,7 +48,7 @@ The following arguments are supported:
|
||||||
* `name` - (Required) The name of the user. Changing this forces a new resource
|
* `name` - (Required) The name of the user. Changing this forces a new resource
|
||||||
to be created.
|
to be created.
|
||||||
|
|
||||||
* `password` - (Required) The users password. Can be updated.
|
* `password` - (Optional) The users password. Can be updated.
|
||||||
|
|
||||||
- - -
|
- - -
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user