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

[Bug] reset_elasticsearch_password does not trigger a change #895

Open
kuisathaverat opened this issue Feb 24, 2025 · 0 comments
Open

[Bug] reset_elasticsearch_password does not trigger a change #895

kuisathaverat opened this issue Feb 24, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@kuisathaverat
Copy link
Contributor

Describe the bug

If you set reset_elasticsearch_password without no other changes in the terraform plan it does not trigger a change.

To Reproduce
Steps to reproduce the behavior:

  1. Create a deployment with the following terraform plan
variable "ess_apikey" {
  type = string
}
terraform {
  required_version = ">= 0.12.29"

  required_providers {
    ec = {
      source  = "elastic/ec"
      version = "0.12.2"
    }
  }
}
provider "ec" {
  endpoint = "https://cloud.elastic.co"
  insecure = true
  apikey = var.ess_apikey
  verbose = true
}
resource "ec_deployment" "main" {
  name = "test-reset-password"
  region                 = "gcp-us-west2"
  version                = "8.18.0"
  deployment_template_id = "gcp-storage-optimized"
  elasticsearch = {
    autoscale = false
    # uncomment in step 2
    # reset_elasticsearch_password: true
    hot = {
      autoscaling = {
      }
      zone_count = 2
    }
  }
}
  1. change the plan to have reset_elasticsearch_password: true
  2. There are no changes to apply
ec_deployment.main: Refreshing state... [id=11111111111111111111111111111]

No changes. Your infrastructure matches the configuration.

Terraform has compared your real infrastructure against your configuration and found no differences, so no changes
are needed.

Apply complete! Resources: 0 added, 0 changed, 0 destroyed.

Expected behavior

A change would be triggered, and the password would be reset

Screenshots
If applicable, add screenshots to help explain your problem.

Versions (please complete the following information):

  • OS: Linux
  • Terraform Version 1.10.5
  • Provider version 0.12.2
  • Elasticsearch Version 8.18.0

Additional context
Add any other context about the problem here.

@kuisathaverat kuisathaverat added the bug Something isn't working label Feb 24, 2025
@tobio tobio transferred this issue from elastic/terraform-provider-elasticstack Mar 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant