-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
aws_elasticsearch_domain Advanced options are not applied properly #3980
Comments
I've got a hunch that this may be caused by the way we process the map for advanced_options: I'll try adding some extra logging and reproduce it. |
@robertfirek You can try specifying options as strings in the meantime: advanced_options {
"rest.action.multi.allow_explicit_index" = "true"
} |
@radeksimko I've tried this approach before I wrote this issue. It doesn't work. |
I'm having the same issue - have tried with both booleans and strings with no luck. |
After trying to reproduce this & running a few tests, I believe this is a core issue, described here #2143 Tags were something that a user could choose/change, but we cannot choose the map keys here, so the bug is affecting this resource more significantly. |
Ran into this today. Would love a fix. |
Also wanted to mention that from I testing I noticed that if you try to set advanced_options they end up being set to false For instance, rest.action.multi.allow_explicit_index normally defaults to true but if you happen to manually set this to true it ends up being set as false. |
@chiefy My work around was to not include advanced_options in terraform. This made rest.action.multi.allow_explicit_index equal true (normally the default) and it looked like I could modify advanced_options in the AWS console without causing idempotent issues with the resource in terraform. Not ideal but for now it won't prevent me from deploying ES to all of our environments. |
Also have this issue ( |
+1 for trackinng purposes. |
The work around until this gets fixed may include It's probably not as portable as terraform code, but it does the job. |
@genofedanzo 's fix worked for me (just not including |
Confirmed as of today in v0.6.16 this bug still exists. |
I observed today in 0.7.0. Not including |
I just checked 0.7.0 and it may not work exactly per the example in documentation, but dots in map keys are not the cause anymore. By default we cast map values to strings before sending those to the API and The following example does set resource "aws_elasticsearch_domain" "es" {
domain_name = "tf-test"
advanced_options {
"rest.action.multi.allow_explicit_index" = "true"
"indices.fielddata.cache.size" = 40
}
} I'll relabel this to resource bug as we can still fix the map conversion in the context of this resource (i.e. probably turn |
still a problem in
|
I've just ran into this issue with v0.8.5 as well, the following didn't work for me either:
|
The following works for us on terraform v. 0.8.8:
|
Can confirm that @pracucci's fix works on v0.8.6 |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
When tried to apply the following advanced option on aws_elasticsearch_domain
it was not applied properly in amazon (rest.action.multi.allow_explicit_index option was set to false).
Changing this option doesn't change plan (I've changed true to false) and it is impossible to control options.
State file:
Terraform version:
v0.6.5
The text was updated successfully, but these errors were encountered: