layout | page_title | sidebar_current | description |
---|---|---|---|
influxdb-v2 |
Provider: InfluxDB V2 |
docs-influxdb-v2-index |
The InfluxDB V2 provider configures buckets, tokens, etc on an InfluxDB V2 server. |
The InfluxDB V2 provider allows Terraform to manage InfluxDB v2.
The provider configuration block accepts the following arguments:
url
- (Optional)
- The root URL of a InfluxDB V2 server. May alternatively be set via the
INFLUXDB_V2_URL
environment variable. - Defaults to
http://localhost:8086/
.
token
- (Optional)
- The token of the Influwdb V2 account. May alternatively be set via the
INFLUXDB_V2_TOKEN
environment variable.
provider "influxdb-v2" {
url = "http://influxdb.example.com:8086"
token = "influxdbToken"
}
A token can be acquired by executing the onboarding process, which is possible using:
- influx GUI, API or command line (manually)
- the dedicated provider (terraform) available here