-
Notifications
You must be signed in to change notification settings - Fork 89
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
Cannot use deployment data source when autoscaling is not defined. #649
Comments
I can confirm this bug, we are hitting exactly the same issue. |
Hitting the exact same issue on |
@shivshav are you able to let me know a deployment id you're using when triggering this issue? |
Version information
Minimum working example terraform {
required_version = "~> 1.2"
required_providers {
ec = {
source = "elastic/ec"
version = "0.7.0"
}
}
}
provider "ec" {}
data "ec_deployment" "mwe" {
id = "REDACTED"
} Same error as reported above
Cluster information:
Context, I know v6 is EoL, I was attempting to read in an old v6 cluster to automatically generate the Elasticsearch cluster definition to shortcut building a similar supported cluster. I expect older versions aren't supported by the provider since they were removed from the EC console. If so, the provider should probably check the version and abort with a suitable message. |
@tobio Funnily enough I tried running In any case, no more issues running |
ec_deployment
and receiving cannot convert List to tftypes.Value if ElemType field is not set
The provider will crash when no autoscaling properties are defined on cluster topology elements. Deployments created via the UI will include autoscaling limits regardless of whether autoscaling is enabled or not, to repro a deployment must be created via the API, without any autoscaling limits defined, or created with a version which does not support autoscaling.
Original issue
Readiness Checklist
I'm attempting to get data back from
ec_deployment
using providerec
version0.7.0
. Received this error from Terraform:This happens running this simple Terraform with the
deployment_id
set toid
Turn on tracing (seen below) and it looks like the error message indicates that there are two Value Conversion Errors encountered while reading the "ec_deployment" data source. The first error is related to the attribute "autoscaling," and the second error is related to the attribute "topology."
Trace Logs
The text was updated successfully, but these errors were encountered: