You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
terraform state import imports a correct version of ec_deployment
Current Behavior
The version it imports is incorrect: it displays 8.4.3, instead of 8.7.0
Context
I had an ec_deployment of version 8.4.3.
I've updated my cluster manually to version 8.7.0 using elastic cloud dashboard.
Now I'm trying to import terraform state using latest ec provider (0.6.0).
I've tried to update it to 8.7.0 by changing my tf configuration (my expectation was that it will be a no-op):
│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to ec_deployment.main, provider
│ "provider[\"registry.terraform.io/elastic/ec\"]" produced an unexpected new
│ value: .version: was cty.StringVal("8.7.0"), but now
│ cty.StringVal("8.4.3").
│
│ This is a bug in the provider, which should be reported in the provider's
│ own issue tracker.
╵
Your Environment
Version used: 0.6.0
Running against Elastic Cloud
Terraform: 1.4.2
Operating System and version: Windows 10
The text was updated successfully, but these errors were encountered:
According to ElasticCloud API (/deployments/deploymentId) I had Enterprise Search of version 8.4.3, while all other resources are 8.7.0.
Many months ago, I had an Enterprise Search that was disabled (removed).
For some reason, it was not updated with other resources on the recent update to 8.7.0 - it is ok, because it was disabled/removed.
There is a part of response from /deployments endpoint:
But, it looks like tf ec provider ignores the fact that it was removed and probably uses the minimal version from all resources. Probably this logic validates a wrong field?
My fix was to re-enable Enterprise Search (it automatically triggers an update to 8.7.0) and after that ec provider works as expected.
Readiness Checklist
Expected Behavior
terraform state import
imports a correct version of ec_deploymentCurrent Behavior
The version it imports is incorrect: it displays 8.4.3, instead of 8.7.0
Context
I had an ec_deployment of version 8.4.3.
I've updated my cluster manually to version 8.7.0 using elastic cloud dashboard.
Now I'm trying to import terraform state using latest ec provider (0.6.0).
I've tried to update it to 8.7.0 by changing my tf configuration (my expectation was that it will be a no-op):
terraform plan partial output:
Unfortunately,
terraform apply
command throws exception:Your Environment
The text was updated successfully, but these errors were encountered: