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

     1  ---
     2  layout: "influxdb"
     3  page_title: "InfluxDB: influxdb_user"
     4  sidebar_current: "docs-influxdb-resource-user"
     5  description: |-
     6    The influxdb_user resource allows an InfluxDB users to be managed.
     7  ---
     8  
     9  # influxdb\_user
    10  
    11  The user resource allows a user to be created on an InfluxDB server.
    12  
    13  ## Example Usage
    14  
    15  ```hcl
    16  resource "influxdb_database" "green" {
    17      name = "terraform-green"
    18  }
    19  
    20  resource "influxdb_user" "paul" {
    21      name = "paul"
    22      password = "super-secret"
    23  
    24      grant {
    25        database = "${influxdb_database.green.name}"
    26        privilege = "write"
    27      }
    28  }
    29  ```
    30  
    31  ## Argument Reference
    32  
    33  The following arguments are supported:
    34  
    35  * `name` - (Required) The name for the user. 
    36  * `password` - (Required) The password for the user. 
    37  * `admin` - (Optional) Mark the user as admin.
    38  * `grant` - (Optional) A list of grants for non-admin users
    39  
    40  Each `grant` supports the following:
    41  
    42  * `database` - (Required) The name of the database the privilege is associated with
    43  * `privilege` - (Required) The privilege to grant (READ|WRITE|ALL)
    44  
    45  ## Attributes Reference
    46  
    47  * `admin` - (Bool) indication if the user is an admin or not.