-
Notifications
You must be signed in to change notification settings - Fork 42
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
MM-52337: Use aws_opensearch_domain #701
Conversation
The previous version, 3.0, did not support aws_opensearch_domain resource, so we bumped it to the latest one. In turn, the latest version, 5.39 does not support aws_subnet_ids, which was replaced with aws_subnets.
This is done running terraform init -upgrade inside the deployment/terraform/assets directory.
The version is now specified in the engine_version field, not in the elasticsearch_version field. This field is now a string instead of a number.
@@ -2,21 +2,81 @@ | |||
# Manual edits may be lost in future updates. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this file meant to be checked in?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You asked this exact same question almost three years ago hahaha
Answering your question: yes. I had the same question you had three years ago (and today), double-checked the docs and yes, they still recommend to check it in.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤦
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, love to see defaults
package getting more and more features :)
I'm always impressed about the groundwork of the |
Merging, this has already been successfully tested. |
Summary
We decided to use the latest OpenSearch version compatible with ElasticSearch (i.e., those until the latest OSS version of ElasticSearch, v7.10).
This PR addresses this decision, replacing the aws_elasticsearch_domain resource with aws_opensearch_domain. This forced me to upgrade the Terraform's aws provider itself, and some things had to be changed because of that.
This has been tested in a deployment using an
r6g.large.search
instance withElasticsearch_7.10
. It deployed successfully, and a manual index of the 20M posts DB finished in 5 hours.Ticket Link
https://mattermost.atlassian.net/browse/MM-52337