Skip to content

[FEATURE] Support data stream lifecycle in component templates #5516

Open

Description

@nilsbentfeld

Name of the resource

elasticstack_elasticsearch_component_template

Describe new functionality

Extend elasticstack_elasticsearch_component_template to support the data stream lifecycle fields inside template.lifecycle.
Elasticsearch accepts lifecycle configuration in component templates. Supporting it in the provider would let users manage data stream retention alongside mappings and other component-template settings, using the existing Terraform resource.

For example:

resource "elasticstack_elasticsearch_component_template" "synthetics_custom" {
  name = "synthetics@custom"
  template {
    lifecycle {
      data_retention = "30d"
    }
}

Version Introduced

8.11.0

Anything else?

Activity

  1. added
    needs-research
    triaged
    on Nov 18, 2026
  2. github-actions commented on Nov 18, 2026

    @github-actions
    Contributor

    Thanks for filing this! I've added the needs-research label to this issue.

    This looks like a feature request with a clear scope — extending elasticstack_elasticsearch_component_template to support the template.lifecycle data stream lifecycle fields — so it's been queued for the research-factory pipeline. Research-factory will produce a detailed implementation specification exploring the Elastic API, schema design, and implementation approach, informed by the existing elasticsearch_index_template lifecycle support and the referenced prior PR.

    If I've misclassified this or you have additional context, please leave a comment — a maintainer can adjust the label manually.

  3. added
    enhancement
    on Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementneeds-researchtriaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions