Skip to content

[Feature] Kibana authentication on resource-level kibana_connectionΒ #509

@Zawadidone

Description

@Zawadidone

Is your feature request related to a problem? Please describe.
I would like to use the provider to create Kibana resources (elasticstack_kibana_*) on multiple Elastic Cloud cluster. But this is not supported for Kibana resources, because this can only be configured in the provider section using static credentials for a single Kibana instance.

https://registry.terraform.io/providers/elastic/elasticstack/latest/docs

provider "elasticstack" {
  kibana {
    username  = "elastic"
    password  = "changeme"
    endpoints = ["http://localhost:5601"]
  }
}

Each elasticsearch resource supports an elasticsearch_connection block, which allows the usage of the same provider on multiple Elasticsearch instances. I would like to have the same feature for Kibana resources.

Describe the solution you'd like
Add the kibana_connection block to every Kibana resource (elasticstack_kibana_*) which can be used by Terraform to connect with a Kibana instance:

resource "elasticstack_kibana_data_view" "default" {
  [...]

  kibana_connection {
    endpoints = [ec_deployment.default.kibana.https_endpoint]
    username  = ec_deployment.default.elasticsearch_username
    password  = ec_deployment.default.elasticsearch_password
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions