forked from phillbaker/terraform-provider-elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
46 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ We fork this project for the following items: | |
|
||
## Installation | ||
|
||
[Download a binary](https://github.com/phillbaker/terraform-provider-elasticsearch/releases), and put it in a good spot on your system. Then update your `~/.terraformrc` to refer to the binary: | ||
[Download a binary](https://github.com/disaster37/terraform-provider-elasticsearch/releases), and put it in a good spot on your system. Then update your `~/.terraformrc` to refer to the binary: | ||
|
||
```hcl | ||
providers { | ||
|
@@ -66,7 +66,7 @@ You can see the API documentation: https://www.elastic.co/guide/en/elasticsearch | |
|
||
***Sample:*** | ||
```tf | ||
resource "elasticsearch_role" "test" { | ||
resource elasticsearch_role "test" { | ||
name = "terraform-test" | ||
indices { | ||
names = ["logstash-*"] | ||
|
@@ -114,7 +114,7 @@ You can see the API documentation: https://www.elastic.co/guide/en/elasticsearch | |
|
||
***Sample***: | ||
```tf | ||
resource "elasticsearch_role_mapping" "test" { | ||
resource elasticsearch_role_mapping "test" { | ||
name = "terraform-test" | ||
enabled = "true" | ||
roles = ["superuser"] | ||
|
@@ -149,7 +149,7 @@ You can see the API documenation: https://www.elastic.co/guide/en/elasticsearch/ | |
|
||
***Sample:*** | ||
```tf | ||
resource "elasticsearch_user" "test" { | ||
resource elasticsearch_user "test" { | ||
username = "terraform-test" | ||
enabled = "true" | ||
email = "[email protected]" | ||
|
@@ -182,7 +182,7 @@ You can see the API documentation: https://www.elastic.co/guide/en/elasticsearch | |
|
||
***Sample:*** | ||
```tf | ||
resource "elasticsearch_index_lifecycle_policy" "test" { | ||
resource elasticsearch_index_lifecycle_policy "test" { | ||
name = "terraform-test" | ||
policy = <<EOF | ||
{ | ||
|
@@ -226,7 +226,7 @@ You can see the API documentation: https://www.elastic.co/guide/en/elasticsearch | |
|
||
***Sample:*** | ||
```tf | ||
resource "elasticsearch_index_template" "test" { | ||
resource elasticsearch_index_template "test" { | ||
name = "terraform-test" | ||
template = <<EOF | ||
{ | ||
|
@@ -262,7 +262,7 @@ You can see the API documentation: https://www.elastic.co/guide/en/elasticsearch | |
|
||
***Sample:*** | ||
```tf | ||
resource "elasticsearch_license" "test" { | ||
resource elasticsearch_license "test" { | ||
use_basic_license = "true" | ||
} | ||
``` | ||
|
@@ -284,7 +284,7 @@ You can see the API documentation: https://www.elastic.co/guide/en/elasticsearch | |
|
||
***Sample:*** | ||
```tf | ||
resource "elasticsearch_snapshot_repository" "test" { | ||
resource elasticsearch_snapshot_repository "test" { | ||
name = "terraform-test" | ||
type = "fs" | ||
settings = { | ||
|
@@ -310,7 +310,7 @@ You can see the API documentation: https://www.elastic.co/guide/en/elasticsearch | |
|
||
***Sample:*** | ||
```tf | ||
resource "elasticsearch_snapshot_lifecycle_policy" "test" { | ||
resource elasticsearch_snapshot_lifecycle_policy "test" { | ||
name = "terraform-test" | ||
snapshot_name = "<daily-snap-{now/d}>" | ||
schedule = "0 30 1 * * ?" | ||
|
@@ -321,6 +321,13 @@ resource "elasticsearch_snapshot_lifecycle_policy" "test" { | |
"ignore_unavailable": false, | ||
"include_global_state": false | ||
} | ||
EOF | ||
retention = <<EOF | ||
{ | ||
"expire_after": "7d", | ||
"min_count": 5, | ||
"max_count": 10 | ||
} | ||
EOF | ||
} | ||
``` | ||
|
@@ -331,7 +338,7 @@ EOF | |
- **schedule**: (required) A periodic or absolute time schedule. | ||
- **repository**: (required) The snapshot repository that will contain snapshots created by this policy. | ||
- **configs**: (optional) Configuration for each snapshot that will be created by this policy. It's a string as JSON object. | ||
|
||
- **retention**: (optional) Retention rules used to retain and delete snapshots created by the policy. It's a string as JSON object. | ||
___ | ||
|
||
### Watcher resource | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters