Skip to content

[Feature] elasticstack_kibana_data_view - can't set default data view  #603

@slideroh

Description

@slideroh

Implementation plan

  • Create a new elasticstack_kibana_default_data_view resource
  • Use set default data view and get default data view API operations.
  • The resource should define data_view_id, force, and skip_delete attributes in it's schema. If skip_delete is true then the Delete operation should be a no-op, leaving the existing default data view unchanged.
  • Add acceptance tests covering the resource behaviour. Use the existing elasticstack_kibana_data_view resource to create data views for testing.
  • Ensure you follow the Copilot instructions at all times.

Is your feature request related to a problem? Please describe.
When I have many data views, and I'd like to set only one as a default one.
It's visible in Kibana, in Data view, view:
image

Describe the resource you would like to have implemented.
To be able to manage Kibana automatically, the way I could manually. In case I have a lot of Spaces and DataViews.

Describe the solution you'd like

resource "elasticstack_kibana_data_view" "name" {
  data_view = {
    ...
    default = true
  }
}

Describe alternatives you've considered
REST API Call?

Additional context
Attached screenshot

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions