-
Notifications
You must be signed in to change notification settings - Fork 122
Description
Describe the bug
Terraform Failed to create elasticstack_kibana_alerting_rule
and elasticstack_kibana_action_connector
resources with elasticstack 0.6.1 and throwing unsupported protocol scheme errors
Expected behavior
Terraform should be able to create elasticstack_kibana_alerting_rule
and elasticstack_kibana_action_connector
resources on TF apply
Current Behavior
Terraform throwing an error while creating resources
My current configuration
main.tf
alert-rule.tf
and these are the TF error messages
Plan: 1 to add, 0 to change, 0 to destroy.
elasticstack_kibana_alerting_rule.test-alert-rule: Creating...
╷
│ Error: Post "/s/default/api/alerting/rule/": unsupported protocol scheme ""
│
│ with elasticstack_kibana_alerting_rule.test-alert-rule,
│ on alert_rule.tf line 2, in resource "elasticstack_kibana_alerting_rule" "test-alert-rule":
│ 2: resource "elasticstack_kibana_alerting_rule" "test-alert-rule" {
Plan: 1 to add, 0 to change, 0 to destroy.
elasticstack_kibana_action_connector.test_webhook_connector: Creating...
╷
│ Error: unable to create connector: [Post "/s/default/api/actions/connector": unsupported protocol scheme ""]
│
│ with elasticstack_kibana_action_connector.test_webhook_connector,
│ on alert_rule.tf line 24, in resource "elasticstack_kibana_action_connector" "test_webhook_connector":
│ 24: resource "elasticstack_kibana_action_connector" "test_webhook_connector" {
My Environment
Versions used:
elastic/terraform-provider-elasticstack v0.6.1
Terraform v1.4.6