-
Notifications
You must be signed in to change notification settings - Fork 59
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] Error: opensearch version 2.5.0 is older than 6.0.0 and is not supported, flavor: 0. #36
Comments
@komgritz - i specified the version using below format and it worked: provider "opensearch" { url = "https://${aws_opensearch_domain.osdomain.endpoint}" } |
@komgritz OS 2.x is still not fully supported, we have a PR open to add support. |
Hi, @rishabh6788, any updates on the PR mentioned above? @komgritz caught this issue because the documentation doesn't clearly describe how to specify the OpenSearch version. I caught the same error specifying:
But
works fine. Pls, provide a more detailed description of all module variables. |
We get a similar error using
Provider config:
Ping response:
|
@moritzzimmer We're having the same problem with the exact versions. Did you find any resolution to this? Did anyone else figure out the issue behind the version incompatibility? |
@ravi4theja it seems like you could leave out the For us this leads to downstream problems like #69 |
@moritzzimmer Check your Terraform state. Review the resources and remove deprecated from the state like aws_elasticsearch_domain, elasticsearch_opensearch_user, elasticsearch_opensearch_roles_mapping, etc. Import the resources aws_opensearch_domain, opensearch_user, opensearch_roles_mapping, etc. |
Hey folks if you come across this problem and even with the given solution you still have some issues make sure the iam user/role your are using have the correct permission for it : |
update: we currently have no problems using this provider (
|
I have the same issue with On-Premise OS 2.11.1:
|
It seems like the version is only correctly parsed for Serverless OpenSearch. . |
@jclavoie22 Agreed. Is there any way to hack a flavor in there to make it accept non-serverless installs? We had a cluster get destroyed and can't finish rebuilding it because we can't create indexes, users, etc. At this point it looks like we might have to fork this just to rip this bad check out. |
Thanks @rblcoder, the version checks are removed (related PR #168). Closing this issue @necoras @jclavoie22 @DenisBY @moritzzimmer @olexade @fcuza @ravi4theja @maidanskyi @cristianpirtea @komgritz please feel-free to re-open or add comments if required. |
What is the bug?
Error: opensearch version 2.5.0 is older than 6.0.0 and is not supported, flavor: 0.
How can one reproduce the bug?
1.Provisioning AWS Opensearch version 2.5.0.
2.Create some resource with terraform.
Example
resource "opensearch_index_template" "log_aws_default" { count = var.environment == "prod" ? 1 : 0 name = "log-aws_default" body = <<EOF { "index_patterns": [ "log-aws-*" ], "order": 0, "settings": { "index": { "number_of_shards": "1", "number_of_replicas": "1" } }, "mappings": { "_source": { "enabled": true } }, "aliases" : { "log-aws": {} } } EOF }
3. Run terraform apply.
What is the expected behavior?
Terraform apply all resources successfully.
What is your host/environment?
AWS Opensearch version 2.5.0.
Do you have any screenshots?
│ Error: opensearch version 2.5.0 is older than 6.0.0 and is not supported, flavor: 0. │ │ with opensearch_ism_policy.log_aws_default[0], │ on index-opensearch.tf line 2, in resource "opensearch_ism_policy" "log_aws_default": │ 2: resource "opensearch_ism_policy" "log_aws_default" { │ ╵ ╷ │ Error: opensearch version 2.5.0 is older than 6.0.0 and is not supported, flavor: 0. │ │ with opensearch_index_template.log_aws_default[0], │ on index-opensearch.tf line 9, in resource "opensearch_index_template" "log_aws_default": │ 9: resource "opensearch_index_template" "log_aws_default" {
The text was updated successfully, but these errors were encountered: