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
Describe the bug
Hey guys 👋 We've found a bug in the provider when using resource "elasticstack_elasticsearch_index" where this resource does not import the existing index settings to terraform.
To Reproduce
Steps to reproduce the behavior:
TF configuration used. Create a new index with alias, mappings and settings manually:
module.elasticsearch_indices.elasticstack_elasticsearch_index.this["dummy"]: Importing from ID "cluster-uuid/dummy"...
module.elasticsearch_indices.elasticstack_elasticsearch_index.this["dummy"]: Import prepared!
Prepared elasticstack_elasticsearch_index for import
module.elasticsearch_indices.elasticstack_elasticsearch_index.this["dummy"]: Refreshing state... [id=cluster-uuid/dummy]
Import successful!
The resources that were imported are shown above. These resources are now in
your Terraform state and will henceforth be managed by Terraform.
Run terraform plan and the output says that the settings will be created:
# module.elasticsearch_indices.elasticstack_elasticsearch_index.this["dummy"] will be updated in-place
~ resource "elasticstack_elasticsearch_index" "this" {
id = "cluster-uuid/dummy"
name = "dummy"
# (2 unchanged attributes hidden)
+ settings {
+ setting {
+ name = "index.number_of_replicas"
+ value = "2"
}
+ setting {
+ name = "index.number_of_shards"
+ value = "3"
}
+ setting {
+ name = "index.refresh_interval"
+ value = "30s"
}
}
# (1 unchanged block hidden)
}
Plan: 0 to add, 1 to change, 0 to destroy.
Expected behavior
I would expect that the index settings were imported into the terraform state.
Debug output
Run terraform command with TF_LOG=trace and provide extended information on TF operations. -> No different output with the TRACE operation.
Screenshots
Not applicable.
Desktop (please complete the following information):
OS: macOS Big Sur
Terraform Version v1.0.11
Provider version 0.2.0.
Additional context
Add any other context about the problem here.
If you need any clarification or more details please let me know.
By the way, awesome work with this provider 💪
Francisco
The text was updated successfully, but these errors were encountered:
Describe the bug
Hey guys 👋 We've found a bug in the provider when using
resource "elasticstack_elasticsearch_index"
where this resource does not import the existing index settings to terraform.To Reproduce
Steps to reproduce the behavior:
terraform
.terraform plan
and the output says that the settings will be created:Expected behavior
I would expect that the index settings were imported into the terraform state.
Debug output
Run
terraform
command withTF_LOG=trace
and provide extended information on TF operations. -> No different output with the TRACE operation.Screenshots
Not applicable.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
If you need any clarification or more details please let me know.
By the way, awesome work with this provider 💪
Francisco
The text was updated successfully, but these errors were encountered: