File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -14,14 +14,14 @@ func Provider() *schema.Provider {
14
14
Schema : map [string ]* schema.Schema {
15
15
"url" : {
16
16
Type : schema .TypeString ,
17
- Required : true ,
17
+ Optional : true ,
18
18
DefaultFunc : schema .EnvDefaultFunc ("ELASTICSEARCH_ENDPOINT" , nil ),
19
19
Description : "The URL for the Elasticsearch instance." ,
20
20
},
21
21
"token" : {
22
22
Type : schema .TypeString ,
23
- Required : true ,
24
23
Sensitive : true ,
24
+ Optional : true ,
25
25
DefaultFunc : schema .EnvDefaultFunc ("ELASTICSEARCH_API_KEY" , nil ),
26
26
Description : "The token for API authentication." ,
27
27
},
Original file line number Diff line number Diff line change @@ -39,6 +39,6 @@ export ELASTICSEARCH_API_KEY=token
39
39
40
40
The following arguments are supported:
41
41
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.
44
44
* ` insecure ` - (Optional) Skip server certification verification
You can’t perform that action at this time.
0 commit comments