-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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 #51
Comments
This comment was originally opened by @radeksimko as hashicorp/terraform#3980 (comment). It was migrated here as part of the provider split. The original comment is below. 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. |
This comment was originally opened by @radeksimko as hashicorp/terraform#3980 (comment). It was migrated here as part of the provider split. The original comment is below. @robertfirek You can try specifying options as strings in the meantime: advanced_options {
"rest.action.multi.allow_explicit_index" = "true"
} |
This comment was originally opened by @robertfirek as hashicorp/terraform#3980 (comment). It was migrated here as part of the provider split. The original comment is below. @radeksimko I've tried this approach before I wrote this issue. It doesn't work. |
This comment was originally opened by @gmorpheme as hashicorp/terraform#3980 (comment). It was migrated here as part of the provider split. The original comment is below. I'm having the same issue - have tried with both booleans and strings with no luck. |
This comment was originally opened by @radeksimko as hashicorp/terraform#3980 (comment). It was migrated here as part of the provider split. The original comment is below. After trying to reproduce this & running a few tests, I believe this is a core issue, described here hashicorp/terraform#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. |
This comment was originally opened by @genofedanzo as hashicorp/terraform#3980 (comment). It was migrated here as part of the provider split. The original comment is below. Ran into this today. Would love a fix. |
This comment was originally opened by @genofedanzo as hashicorp/terraform#3980 (comment). It was migrated here as part of the provider split. The original comment is below. 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. |
This comment was originally opened by @genofedanzo as hashicorp/terraform#3980 (comment). It was migrated here as part of the provider split. The original comment is below. @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. |
This comment was originally opened by @wnkz as hashicorp/terraform#3980 (comment). It was migrated here as part of the provider split. The original comment is below. Also have this issue ( |
This comment was originally opened by @brentley as hashicorp/terraform#3980 (comment). It was migrated here as part of the provider split. The original comment is below. +1 for trackinng purposes. |
This comment was originally opened by @radeksimko as hashicorp/terraform#3980 (comment). It was migrated here as part of the provider split. The original comment is below. The work around until this gets fixed may include It's probably not as portable as terraform code, but it does the job. |
This comment was originally opened by @chiefy as hashicorp/terraform#3980 (comment). It was migrated here as part of the provider split. The original comment is below. @genofedanzo 's fix worked for me (just not including |
This comment was originally opened by @moesy as hashicorp/terraform#3980 (comment). It was migrated here as part of the provider split. The original comment is below. Confirmed as of today in v0.6.16 this bug still exists. |
This comment was originally opened by @jbryan as hashicorp/terraform#3980 (comment). It was migrated here as part of the provider split. The original comment is below. I observed today in 0.7.0. Not including |
This comment was originally opened by @radeksimko as hashicorp/terraform#3980 (comment). It was migrated here as part of the provider split. The original comment is below. 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 |
This comment was originally opened by @donnoman as hashicorp/terraform#3980 (comment). It was migrated here as part of the provider split. The original comment is below. still a problem in
|
This comment was originally opened by @furhouse as hashicorp/terraform#3980 (comment). It was migrated here as part of the provider split. The original comment is below. I've just ran into this issue with v0.8.5 as well, the following didn't work for me either:
|
This comment was originally opened by @pracucci as hashicorp/terraform#3980 (comment). It was migrated here as part of the provider split. The original comment is below. The following works for us on terraform v. 0.8.8:
|
This comment was originally opened by @wjessop as hashicorp/terraform#3980 (comment). It was migrated here as part of the provider split. The original comment is below. Can confirm that @pracucci's fix works on v0.8.6 |
Hi folks, "Advanced Options" need to be represented as map with varying value types ( There's currently no way to express this in the core schema and With that in mind I'm adding appropriate label. |
Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label. If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you! |
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
This issue was originally opened by @robertfirek as hashicorp/terraform#3980. It was migrated here as part of the provider split. The original body of the issue is below.
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: