mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-03-16 01:00:22 -04:00
* provider/mysql: User Resource This commit introduces a mysql_user resource. It includes basic functionality of adding a user@host along with a password. * provider/mysql: Grant Resource This commit introduces a mysql_grant resource. It can grant a set of privileges to a user against a whole database. * provider/mysql: Adding documentation for user and grant resources
772 B
772 B
layout, page_title, sidebar_current, description
| layout | page_title | sidebar_current | description |
|---|---|---|---|
| mysql | MySQL: mysql_user | docs-mysql-resource-user | Creates and manages a user on a MySQL server. |
mysql_user
The mysql_user resource creates and manages a user on a MySQL
server.
Example Usage
resource "mysql_user" "jdoe" {
user = "jdoe"
host = "example.com"
password = "password"
}
Argument Reference
The following arguments are supported:
-
user- (Required) The name of the user. -
host- (Optional) The source host of the user. Defaults to "localhost". -
password- (Optional) The password of the user. The value of this argument is plain-text so make sure to secure where this is defined.
Attributes Reference
No further attributes are exported.