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

Terraform provider does no handle unsized but enabled ML tiers #471

Closed
4 tasks done
tobio opened this issue Apr 19, 2022 · 0 comments · Fixed by #472
Closed
4 tasks done

Terraform provider does no handle unsized but enabled ML tiers #471

tobio opened this issue Apr 19, 2022 · 0 comments · Fixed by #472
Labels
bug Something isn't working

Comments

@tobio
Copy link
Member

tobio commented Apr 19, 2022

Readiness Checklist

  • I am running the latest version
  • I checked the documentation and found no answer
  • I checked to make sure that this issue has not already been filed
  • I am reporting the issue to the correct repository (for multi-repository projects)

Expected Behavior

Managing the following resources should create the topology elements once, and then not show any required changed on a subsequent terraform plan

resource "ec_deployment" "staging" {
  region                 = "eu-west-1"
  version                = data.ec_stack.latest.version
  deployment_template_id = "aws-storage-optimized"

  elasticsearch {
    autoscale = "true"

    topology {
      id         = "hot_content"
      size       = "1g"
      zone_count = 3

      autoscaling {
        max_size = "8g"
      }
    }

    topology {
      id         = "ml"
      zone_count = 1

      autoscaling {
        min_size = "0gb"
        max_size = "60gb"
      }
    }
  }

  kibana {
    topology {
      size       = "1g"
      zone_count = 2
    }
  }
}

Current Behavior

The provider does not treat the unsized ML tier as existing, and attempts to create it on each subsequent terraform plan|apply

## Terraform definition

resource "ec_deployment" "staging" {
  region                 = "eu-west-1"
  version                = data.ec_stack.latest.version
  deployment_template_id = "aws-storage-optimized"

  elasticsearch {
    autoscale = "true"

    topology {
      id         = "hot_content"
      size       = "1g"
      zone_count = 3

      autoscaling {
        max_size = "8g"
      }
    }

    topology {
      id         = "ml"
      zone_count = 1

      autoscaling {
        min_size = "0gb"
        max_size = "60gb"
      }
    }
  }

  kibana {
    topology {
      size       = "1g"
      zone_count = 2
    }
  }
}

Steps to Reproduce

  1. Use the above resource
  2. terraform apply
  3. terraform apply
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

Successfully merging a pull request may close this issue.

1 participant