Skip to content

Commit

Permalink
feat(InfluxDB): add InfluxDB support
Browse files Browse the repository at this point in the history
  • Loading branch information
rixrix committed Dec 10, 2016
1 parent cad904d commit dd3914d
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* Add support for `Dyn`
* Add support for `Fastly`
* Add support for `Grafana`
* Add support for `InfluxDB`

# 0.10.0

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ This extension for Visual Studio Code adds snippets for Terraform.
* Dyn
* Fastly
* Grafana
* InfluxDB
* AWS
* Resources w/ examples
* All [Data Sources](https://www.terraform.io/docs/providers/aws/d/acm_certificate.html),
Expand Down Expand Up @@ -102,7 +103,6 @@ A massive list of things to add
### Providers
* InfluxDB
* Librato
* Logentries
* Mailgun
Expand Down
47 changes: 47 additions & 0 deletions snippets/terraform.json
Original file line number Diff line number Diff line change
Expand Up @@ -4841,4 +4841,51 @@
"}"
]
},
"influxdb": {
"prefix": "tf-influxdb",
"description": "define a influxdb provider.",
"body": [
"provider \"influxdb\" {",
" username = \"1234abcd\"",
" url = \"http://influxdb.example.com/\"",
"}"
]
},
"influxdb_database": {
"prefix": "tf-influxdb_database",
"description": "define influxdb_database resource.",
"body": [
"resource \"influxdb_database\" \"${myResourceName}\" {",
" name = \"my-${myResourceName}\"",
" description = \"my-description-${myResourceName}\"\n",
"}"
]
},
"influxdb_user": {
"prefix": "tf-influxdb_user",
"description": "define influxdb_user resource.",
"body": [
"resource \"influxdb_user\" \"${myResourceName}\" {",
" name = \"my-${myResourceName}\"",
" description = \"my-description-${myResourceName}\"\n",
" password = \"super-secret\"\n",
" grant {",
" database = \"\\${influxdb_database.green.name}\"",
" privilege = \"write\"",
" }",
"}"
]
},
"influxdb_continuous_query": {
"prefix": "tf-influxdb_continuous_query",
"description": "define influxdb_continuous_query resource.",
"body": [
"resource \"influxdb_continuous_query\" \"${myResourceName}\" {",
" name = \"my-${myResourceName}\"",
" description = \"my-description-${myResourceName}\"\n",
" database = \"\\${influxdb_database.test.name}\"",
" query = \"SELECT min(mouse) INTO min_mouse FROM zoo GROUP BY time(30m)\"",
"}"
]
}
}

0 comments on commit dd3914d

Please sign in to comment.