-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Adding multiple subnets to Elasticsearch Resource with zone awareness #4038
Comments
Hello – Can you share how |
i literally just hit this problem and went looking for an answer this morning, and found this. my fix was:
which gives the output as:
|
I imagine |
it needs a total of 2, so need to be explicit |
Recently AWS announced to support 3 availability zones for Elasticsearch but I see terraform still lacking this feature, I think we need to add support of 3 explicit subnet support in terraform. reference of aws announcement is: https://aws.amazon.com/about-aws/whats-new/2019/02/amazon-elasticsearch-service-now-supports-three-availability-zone-deployments/ |
@catsby can we re-open this given @shivpathak's comment above. AWS just released support for 3 AZ's, but it looks as if terraform still doesn't support it. |
@catsby I tried #4038 (comment) and #4038 (comment). No luck.... I think this needs re-opened. |
When I create the cluster using terraform I can confirm this error with provider aws 2.5.0 and terraform 0.11.13. What is odd is that one can create a cluster using the web console and import the existing cluster into the same config with no problem. |
I'm having also the same problem, unable to use more than one subnet
I have terraform 0.12.1 and provider.aws v2.14.0 |
Ok, we have to add set |
Finally we got this (elasticsearch 3 az support in terraform) done. it's release in terraform-provider-aws version v2.20.0 reference linke - #9398 |
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! |
Hi there,
Thank you for opening an issue. Please note that we try to keep the Terraform issue tracker reserved for bug reports and feature requests. For general usage questions, please see: https://www.terraform.io/community.html.
Terraform Version
Run
terraform -v
to show the version. If you are not running the latest version of Terraform, please upgrade because your issue may have already been fixed.0.11
Affected Resource(s)
Please list the resources as a list, for example:
AWS Elasticsearch domain
If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.
Terraform Configuration Files
module.vpc.public_subnets is a list of public subnets
So, I try and pass subnets with list [0] and list [1]
Debug Output
Please provide a link to a GitHub Gist containing the complete debug output: https://www.terraform.io/docs/internals/debugging.html. Please do NOT paste the debug output in the issue; just paste a link to the Gist.
When I terraform apply below happens:
vpc_option
tags.Domain: "" => "dev2"
vpc_options.#: "" => "1"
vpc_options.0.availability_zones.#: "" => ""
vpc_options.0.security_group_ids.#: "" => "1"
vpc_options.0.security_group_ids.3025683553: "" => "sg-c48d2aba"
vpc_options.0.subnet_ids.#: "" => "1"
vpc_options.0.subnet_ids.4075328369: "" => "subnet-c9cf7fb0, subnet-b02dfefb"
vpc_options.0.vpc_id: "" => ""
1 error(s) occurred:
Panic Output
If Terraform produced a panic, please provide a link to a GitHub Gist containing the output of the
crash.log
.Expected Behavior
What should have happened?
How do I make ES subnets_ids accept 2 values from the list module.vpc.public_subnets? so as to enable zone awareness?
Actual Behavior
What actually happened?
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
Important Factoids
Are there anything atypical about your accounts that we should know? For example: Running in EC2 Classic? Custom version of OpenStack? Tight ACLs?
References
Are there any other GitHub issues (open or closed) or Pull Requests that should be linked here? For example:
The text was updated successfully, but these errors were encountered: