Skip to content

Commit c024dc4

Browse files
committed
[provider] Revert part of 1bbc361, reduce connection issues.
Based on CI failures, keeping this defaulted to true seems to reduce connection issues, resulting in failures of the provider.
1 parent 64f21df commit c024dc4

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Changelog
22
## Unreleased
33
### Changed
4-
- [provider] Change default for healthcheck and sniffing to false, see https://github.com/phillbaker/terraform-provider-elasticsearch/pull/161.
4+
- [provider] Change default for sniffing to false, see https://github.com/phillbaker/terraform-provider-elasticsearch/pull/161.
55
- [aws] Reuse session options, ensure synchronization before using credentials, see https://github.com/phillbaker/terraform-provider-elasticsearch/issues/124.
66

77
### Added

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ The following arguments are supported:
5858

5959
* `url` (Required) - Elasticsearch URL. Defaults to `ELASTICSEARCH_URL` from the environment.
6060
* `sniff` (Optional) - Set the node sniffing option for the elastic client. Client won't work with sniffing if nodes are not routable. Defaults to `ELASTICSEARCH_SNIFF` from the environment or false.
61-
* `healthcheck` (Optional) - Set the client healthcheck option for the elastic client. Healthchecking is designed for direct access to the cluster. Defaults to `ELASTICSEARCH_HEALTH` from the environment, or false.
61+
* `healthcheck` (Optional) - Set the client healthcheck option for the elastic client. Healthchecking is designed for direct access to the cluster. Defaults to `ELASTICSEARCH_HEALTH` from the environment, or true.
6262
* `username` (Optional) - Username to use to connect to elasticsearch using basic auth. Defaults to `ELASTICSEARCH_USERNAME` from the environment
6363
* `password` (Optional) - Password to use to connect to elasticsearch using basic auth. Defaults to `ELASTICSEARCH_PASSWORD` from the environment
6464
* `aws_assume_role_arn` (Optional) - ARN of role to assume when using AWS Elasticsearch Service domains.

es/provider.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ func Provider() *schema.Provider {
8484
"healthcheck": {
8585
Type: schema.TypeBool,
8686
Optional: true,
87-
DefaultFunc: schema.EnvDefaultFunc("ELASTICSEARCH_HEALTH", false),
87+
DefaultFunc: schema.EnvDefaultFunc("ELASTICSEARCH_HEALTH", true),
8888
Description: "Set the client healthcheck option for the elastic client. Healthchecking is designed for direct access to the cluster.",
8989
},
9090
"username": {

0 commit comments

Comments
 (0)