-
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
aws_elasticsearch_domain: opensearch support #20853
Comments
Any movement or ETA on this feature request ? |
FWIW, I upgrade terraform-provider-aws to version 3.60 and was able to use string PR to support OpenSearch in aws-sdk-go: aws/aws-sdk-go#4101 The PR to pull version 1.45 of aws-sdk-go into terraform-provider-aws: #20975 |
In terms of
Source: |
terraform-provider-aws version 3.57 also allows upgrading with string OpenSearch_1.0 |
Unfortunately it does not work:
terraform-provider-aws version 3.63.0 |
I'm still using ElasticSearch 7.10 and not OpenSearch 1.0 because of cross cluster replication. But I tried to create a new OpenSearch 1.0 cluster like this
I was able to run |
oh I see the error now
I could not run terraform apply the 2nd time with that setting. |
With upgrade from elasticseaarch it is not working either |
I dig deeper and learn these:
https://github.com/aws/aws-sdk-go/blob/bdbaf04864f503518c19b5f6d83e62ebf5d6bbe4/service/elasticsearchservice/api.go#L4094
Basically to support this setting, I would wait until version 4.x of the provider. From now until then, I suggest to manually do the upgrade and/or the advanced options and ignore that in terraform. |
Just wanted to highlight that this issue of not supporting |
Would closing #20433 be sufficient to allow an upgrade to 1.x via terraform or support for this needs to be added specifically for aws opensearch? |
the opensearch API is avaliable in v1 as well: https://pkg.go.dev/github.com/aws/aws-sdk-go@v1.42.33/service/opensearchservice |
Hi all 👋 Just letting you know that this is issue is featured on this quarters roadmap. If a PR exists to close the issue a maintainer will review and either make changes directly, or work with the original author to get the contribution merged. If you have written a PR to resolve the issue please ensure the "Allow edits from maintainers" box is checked. Thanks for your patience and we are looking forward to getting this merged soon! |
There are several problems with adding OpenSearch support to the existing Elasticsearch resources in TF AWS provider:
We can avoid breaking changes and support OpenSearch by simply following AWS's lead and re-implementing the Elasticsearch service as the OpenSearch service (see #23902). Resources will be named correctly, and the structural changes are not a problem with new resources. It will be clear to practitioners that they are using the OpenSearch service and can, within that, use Elasticsearch or OpenSearch, with the appropriate ARNs, endpoints, and policies. |
That seems like the right move to me as well. Thanks for making PR for that @YakDriver |
This functionality has been released in v4.9.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
And here are the OpenSearch-specific docs: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/opensearch_domain |
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. |
Community Note
Description
OpenSearch was now released. The terraform module could consider renaming resources.
Also, OpenSearch supports an
Enable compatibility mode
option. This should probably be exposed from the module.New or Affected Resource(s)
The text was updated successfully, but these errors were encountered: