Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ func Provider() *schema.Provider {
Schema: map[string]*schema.Schema{
"url": {
Type: schema.TypeString,
Required: true,
Optional: true,
DefaultFunc: schema.EnvDefaultFunc("ELASTICSEARCH_ENDPOINT", nil),
Description: "The URL for the Elasticsearch instance.",
},
"token": {
Type: schema.TypeString,
Required: true,
Sensitive: true,
Optional: true,
DefaultFunc: schema.EnvDefaultFunc("ELASTICSEARCH_API_KEY", nil),
Description: "The token for API authentication.",
},
Expand Down
4 changes: 2 additions & 2 deletions website/docs/index.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ export ELASTICSEARCH_API_KEY=token

The following arguments are supported:

* `url` - (Required) Url to the ElasticSsearch API
* `token` - (Required) Authentication token to the ElasticSearch API
* `url` - (Option) Url to the Elasticsearch API. Default is `ELASTICSEARCH_ENDPOINT` environment variable.
* `token` - (Option) Authentication token to the ElasticSearch API. Default is `ELASTICSEARCH_API_KEY` environment variable.
* `insecure` - (Optional) Skip server certification verification
Loading