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

     1  ---
     2  layout: "influxdb"
     3  page_title: "Provider: InfluxDB"
     4  sidebar_current: "docs-influxdb-index"
     5  description: |-
     6    The InfluxDB provider configures databases, etc on an InfluxDB server.
     7  ---
     8  
     9  # InfluxDB Provider
    10  
    11  The InfluxDB provider allows Terraform to create Databases in
    12  [InfluxDB](https://influxdb.com/). InfluxDB is a database server optimized
    13  for time-series data.
    14  
    15  The provider configuration block accepts the following arguments:
    16  
    17  * ``url`` - (Optional) The root URL of a InfluxDB server. May alternatively be
    18    set via the ``INFLUXDB_URL`` environment variable. Defaults to
    19    `http://localhost:8086/`.
    20  
    21  * ``username`` - (Optional) The name of the user to use when making requests.
    22    May alternatively be set via the ``INFLUXDB_USERNAME`` environment variable.
    23  
    24  * ``password`` - (Optional) The password to use when making requests.
    25    May alternatively be set via the ``INFLUXDB_PASSWORD`` environment variable.
    26  
    27  Use the navigation to the left to read about the available resources.
    28  
    29  ## Example Usage
    30  
    31  ```hcl
    32  provider "influxdb" {
    33    url      = "http://influxdb.example.com/"
    34    username = "terraform"
    35  }
    36  
    37  resource "influxdb_database" "metrics" {
    38    name = "awesome_app"
    39  }
    40  
    41  resource "influxdb_continuous_query" "minnie" {
    42    name     = "minnie"
    43    database = "${influxdb_database.metrics.name}"
    44    query    = "SELECT min(mouse) INTO min_mouse FROM zoo GROUP BY time(30m)"
    45  }
    46  
    47  resource "influxdb_user" "paul" {
    48    name     = "paul"
    49    password = "super-secret"
    50  }
    51  ```