Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce new remote cluster resource #831

Open
ckauf opened this issue Jul 30, 2024 · 1 comment
Open

Introduce new remote cluster resource #831

ckauf opened this issue Jul 30, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@ckauf
Copy link

ckauf commented Jul 30, 2024

Overview

Remote Clusters are a fixed list inside the ec_deployment resource. This list always needs to be provided in total, which makes it impossible to dynamically add and remove remote clusters from other places/modules in the Terraform project.

Possible Implementation

Remote Clusters should be added as their own resource type, for example similar to this:

resource "ec_deployment" "local_cluster" {
  name = "local_cluster"

  region                 = "us-east-1"
  version                = data.ec_stack.latest.version
  deployment_template_id = "aws-io-optimized-v2"

  elasticsearch = { }
  kibana = {}
  enterprise_search = {}
  integrations_server = {}
}

resource "ec_deployment" "remote_cluster" {
  name = "remote_cluster"

  region                 = "us-east-1"
  version                = data.ec_stack.latest.version
  deployment_template_id = "aws-io-optimized-v2"

  elasticsearch = { }
  kibana = {}
  enterprise_search = {}
  integrations_server = {}
}

resource "ec_deployment_remote_cluster" "example" {
  local_cluster_id = ec_deployment.local_cluster.id
  deployment_id    = ec_deployment.remote_cluster.id
  alias            = ec_deployment.remote_cluster.name
  ref_id           = ec_deployment.remote_cluster.elasticsearch.0.ref_id
}

Context

This blocks the usage of the Elastic Cloud Terraform provider and requires to change the configuration tool, which should be avoided

Your Environment

  • Version used: 0.10.0
  • Running against Elastic Cloud SaaS
@ckauf ckauf added the enhancement New feature or request label Jul 30, 2024
@rbjhirst
Copy link

rbjhirst commented Oct 9, 2024

+1 for this, it would allow us to manage connections for both cloud clusters and on-premises clusters at the same time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants