terraform-provider-elasticstack

command module
v0.16.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 25, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

README

Terraform Provider Elastic Stack

Acceptance Status

Use of the provider

The Elastic Stack provider allows you to manage and configure the Elastic stack (Elasticsearch, Kibana, etc) as code using terraform.

Getting started

The provider supports Elastic Stack versions 8.0+

It is recommended to setup at least minimum security, https://www.elastic.co/guide/en/elasticsearch/reference/current/security-minimal-setup.html in order to interact with the Elasticsearch and be able to use the provider's full capabilities.

Configuring required providers:

terraform {
  required_version = ">= 1.0.0"
  required_providers {
    elasticstack = {
      source  = "elastic/elasticstack"
      version = "~>0.9"
    }
  }
}
Authentication

The Elasticstack provider offers few different ways of providing credentials for authentication. The following methods are supported:

  • Static credentials
  • Environment variables
Static credentials

Default static credentials can be provided by adding the username, password and endpoints in elasticsearch block:

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

Alternatively an api_key can be specified instead of username and password:

provider "elasticstack" {
  elasticsearch {
    api_key  = "base64encodedapikeyhere=="
    endpoints = ["http://localhost:9200"]
  }
}
Environment Variables

You can provide your credentials for the default connection via the ELASTICSEARCH_USERNAME, ELASTICSEARCH_PASSWORD and comma-separated list ELASTICSEARCH_ENDPOINTS, environment variables, representing your user, password and Elasticsearch API endpoints respectively.

Alternatively the ELASTICSEARCH_API_KEY variable can be specified instead of ELASTICSEARCH_USERNAME and ELASTICSEARCH_PASSWORD.

provider "elasticstack" {
  elasticsearch {}
}

Developing the Provider

See contributing.md

Support

We welcome questions on how to use the Elastic providers. The providers are supported by Elastic. General questions, bugs and product issues should be raised in their corresponding repositories, either for the Elastic Stack provider, or the Elastic Cloud one. Questions can also be directed to the discuss forum. https://discuss.elastic.co/c/orchestration.

We will not, however, fix bugs upon customer demand, as we have to prioritize all pending bugs and features, as part of the product's backlog and release cycles.

Support tickets severity

Support tickets related to the Terraform provider can be opened with Elastic, however since the provider is just a client of the underlying product API's, we will not be able to treat provider related support requests as a Severity-1 (Immedediate time frame). Urgent, production-related Terraform issues can be resolved via direct interaction with the underlying project API or UI. We will ask customers to resort to these methods to resolve downtime or urgent issues.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
analysis
generated
kbapi
Package kbapi provides primitives to interact with the openapi HTTP API.
Package kbapi provides primitives to interact with the openapi HTTP API.
internal
acctest/reproductions
Package reproductions holds TestAccReproduceIssue{N} acceptance tests authored by the reproducer-factory workflow as a fallback when no resource package can be confidently identified from the issue.
Package reproductions holds TestAccReproduceIssue{N} acceptance tests authored by the reproducer-factory workflow as a fallback when no resource package can be confidently identified from the issue.
clients/kibanautil
Package kibanautil provides shared helpers for Kibana API clients.
Package kibanautil provides shared helpers for Kibana API clients.
entitycore
Package entitycore provides a shared embedded core for Plugin Framework entities: ResourceBase centralizes resource.ResourceWithConfigure Configure wiring, the Metadata method required by resource.Resource, and stores the configured *clients.ProviderClientFactory for use via ResourceBase.Client.
Package entitycore provides a shared embedded core for Plugin Framework entities: ResourceBase centralizes resource.ResourceWithConfigure Configure wiring, the Metadata method required by resource.Resource, and stores the configured *clients.ProviderClientFactory for use via ResourceBase.Client.
kibana/agentbuilder
Package agentbuilder provides shared helpers for Agent Builder resource packages.
Package agentbuilder provides shared helpers for Agent Builder resource packages.
kibana/dashboard/dashboardacctest
Package dashboardacctest exposes shared helpers used by Kibana Dashboard acceptance tests across multiple packages (dashboard root, panel/*).
Package dashboardacctest exposes shared helpers used by Kibana Dashboard acceptance tests across multiple packages (dashboard root, panel/*).
kibana/dashboard/lenscommon
Package lenscommon holds shared Lens visualization converter contracts and helpers.
Package lenscommon holds shared Lens visualization converter contracts and helpers.
kibana/dashboard/models
Package models holds Terraform Plugin Framework state models for the elasticstack_kibana_dashboard resource: structs tagged with `tfsdk` and no conversion or schema logic.
Package models holds Terraform Plugin Framework state models for the elasticstack_kibana_dashboard resource: structs tagged with `tfsdk` and no conversion or schema logic.
kibana/dashboard/panel/iface
Package iface defines the Terraform dashboard panel Handler contract used by registry-driven routing.
Package iface defines the Terraform dashboard panel Handler contract used by registry-driven routing.
kibana/dashboard/panel/syntheticscommon
Package syntheticscommon contains schema helpers shared by Synthetics-flavoured dashboard panel handlers (`synthetics_monitors`, `synthetics_stats_overview`).
Package syntheticscommon contains schema helpers shared by Synthetics-flavoured dashboard panel handlers (`synthetics_monitors`, `synthetics_stats_overview`).
providerfwtest
Package providerfwtest holds small test helpers for Plugin Framework resources.
Package providerfwtest holds small test helpers for Plugin Framework resources.
scripts
auto-approve command
changelog command
Command changelog implements GitHub workflow helpers for changelog generation and PR changelog validation.
Command changelog implements GitHub workflow helpers for changelog generation and PR changelog validation.
changelog/internal/evidence
Package evidence builds PR evidence manifest JSON and the release artifact plan (parity with the prior JavaScript evidence manifest helpers).
Package evidence builds PR evidence manifest JSON and the release artifact plan (parity with the prior JavaScript evidence manifest helpers).
changelog/internal/prcheck
Package prcheck validates pull request bodies against the repository's "## Changelog" contract (parity with the migrated JavaScript verifier workflow).
Package prcheck validates pull request bodies against the repository's "## Changelog" contract (parity with the migrated JavaScript verifier workflow).
changelog/internal/prmgmt
Package prmgmt implements GitHub pull request maintenance for changelog-generation workflows (parity with changelog-pr-management.js and changelog-release-context.js).
Package prmgmt implements GitHub pull request maintenance for changelog-generation workflows (parity with changelog-pr-management.js and changelog-release-context.js).
ci-deadcode-removal-rotation command
Command ci-deadcode-removal-rotation provides deterministic helpers for the dead-code removal rotation workflow.
Command ci-deadcode-removal-rotation provides deterministic helpers for the dead-code removal rotation workflow.
kibana-spec-impact command
Command kibana-spec-impact provides deterministic helpers for the Kibana OpenAPI spec-impact workflow: entity inventory, kbapi diffing, impact reporting, and memory.
Command kibana-spec-impact provides deterministic helpers for the Kibana OpenAPI spec-impact workflow: entity inventory, kbapi diffing, impact reporting, and memory.
schema-coverage-rotation command
Command schema-coverage-rotation provides helper commands for the schema-coverage-rotation workflow to manage its entity memory file.
Command schema-coverage-rotation provides helper commands for the schema-coverage-rotation workflow to manage its entity memory file.
tools module

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL