File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,14 +14,14 @@ func Provider() *schema.Provider {
1414 Schema : map [string ]* schema.Schema {
1515 "url" : {
1616 Type : schema .TypeString ,
17- Required : true ,
17+ Optional : true ,
1818 DefaultFunc : schema .EnvDefaultFunc ("ELASTICSEARCH_ENDPOINT" , nil ),
1919 Description : "The URL for the Elasticsearch instance." ,
2020 },
2121 "token" : {
2222 Type : schema .TypeString ,
23- Required : true ,
2423 Sensitive : true ,
24+ Optional : true ,
2525 DefaultFunc : schema .EnvDefaultFunc ("ELASTICSEARCH_API_KEY" , nil ),
2626 Description : "The token for API authentication." ,
2727 },
Original file line number Diff line number Diff line change @@ -39,6 +39,6 @@ export ELASTICSEARCH_API_KEY=token
3939
4040The following arguments are supported:
4141
42- * ` url ` - (Required ) Url to the ElasticSsearch API
43- * ` token ` - (Required ) Authentication token to the ElasticSearch API
42+ * ` url ` - (Option ) Url to the Elasticsearch API. Default is ` ELASTICSEARCH_ENDPOINT ` environment variable.
43+ * ` token ` - (Option ) Authentication token to the ElasticSearch API. Default is ` ELASTICSEARCH_API_KEY ` environment variable.
4444* ` insecure ` - (Optional) Skip server certification verification
You can’t perform that action at this time.
0 commit comments