github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/website/source/docs/providers/mysql/r/user.html.markdown (about)

     1  ---
     2  layout: "mysql"
     3  page_title: "MySQL: mysql_user"
     4  sidebar_current: "docs-mysql-resource-user"
     5  description: |-
     6    Creates and manages a user on a MySQL server.
     7  ---
     8  
     9  # mysql\_user
    10  
    11  The ``mysql_user`` resource creates and manages a user on a MySQL
    12  server.
    13  
    14  ~> **Note:** All arguments including username and password will be stored in the raw state as plain-text.
    15  [Read more about sensitive data in state](/docs/state/sensitive-data.html).
    16  
    17  ## Example Usage
    18  
    19  ```hcl
    20  resource "mysql_user" "jdoe" {
    21    user     = "jdoe"
    22    host     = "example.com"
    23    password = "password"
    24  }
    25  ```
    26  
    27  ## Argument Reference
    28  
    29  The following arguments are supported:
    30  
    31  * `user` - (Required) The name of the user.
    32  
    33  * `host` - (Optional) The source host of the user. Defaults to "localhost".
    34  
    35  * `password` - (Optional) The password of the user. The value of this
    36    argument is plain-text so make sure to secure where this is defined.
    37  
    38  ## Attributes Reference
    39  
    40  No further attributes are exported.