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

provider[\"registry.terraform.io/elastic/ec\"]" produced an unexpected new value: .elasticsearch.frozen.zone_count: was cty.NumberIntVal(0), but now cty.NumberIntVal(1) #818

Open
pomodororosso opened this issue Jun 13, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@pomodororosso
Copy link

pomodororosso commented Jun 13, 2024

Error during terraform apply upgrading the terraform-provider-ec from 0.5 to 0.10 and having imported the ec_deployment resource into the terraform state file.

When applying changes to ec_deployment.elastic_cloud, provider
"provider[\"registry.terraform.io/elastic/ec\"]" produced an unexpected new
value: .elasticsearch.frozen.zone_count: was cty.NumberIntVal(0), but now
cty.NumberIntVal(1).

This is a bug in the provider, which should be reported in the provider's own
issue tracker.
@pomodororosso pomodororosso added the bug Something isn't working label Jun 13, 2024
@irontoby
Copy link

irontoby commented Oct 9, 2024

Having the same issue with latest provider.

@irontoby
Copy link

irontoby commented Oct 9, 2024

I think I figured out what's going on here. I'm using a module + variables to set up multiple Elastic Cloud instances. I want to disable warm nodes in the Dev environment so I set warm.node_count to 0 which resulted in the above error.

Instead, if I set size to 0g and node_count to 1 (or, I presume, any positive integer), it has the desired effect of no warm nodes and no error.

This provider would be MUCH easier to parameterize if the hot, warm etc blocks each had an enabled property we could just set to false (both for ec_deployment and elasticstack_elasticsearch_index_lifecycle)

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

2 participants