-
Notifications
You must be signed in to change notification settings - Fork 60
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
[BUG] Import of index resource doesn't include the aliases #108
Comments
Hi @rblcoder @premkirank @SkollRyu @afrodidact @tranngocsongtruc could you take a look and add your thoughts? cc: @prudhvigodithi Thanks. |
I see the same behaviour |
@rblcoder can you please take a look and add your thoughts ? |
rollover_alias is a computed attribute. |
Also please try setting number_of_shards and number_of_replicas as follows that is as separate key/value pairs instead of within settings, documentation https://registry.terraform.io/providers/jamesanto/opensearch/latest/docs/resources/index -
|
@rblcoder |
What is the bug?
When I attempt to import the opensearch_index resource with aliases configured, it doesn't get imported into the state.
How can one reproduce the bug?
Provided an index that was created with aliases
then run the terraform import command
terraform import opensearch_index.index[\"ci-metrics\"] ci-metrics-000001
but this is how the resource looks in the state
Finally when I run a terraform plan, it tells me that the index will replaced to add aliases
The text was updated successfully, but these errors were encountered: