Skip to content

[Bug] Failed to create elasticstack_kibana_alerting_rule and elasticstack_kibana_action_connector resources with elasticstack 0.6.1 #354

@GopalaDuggina

Description

@GopalaDuggina

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

image

alert-rule.tf

image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions