aws_elasticsearch_domain does not support instance types with .search suffix instead of .elasticsearch #22574
Labels
bug
Addresses a defect in current functionality.
service/elasticsearch
Issues and PRs that pertain to the elasticsearch service.
Milestone
Community Note
Terraform CLI and Terraform AWS Provider Version
Affected Resource(s)
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
Error Output
during apply (no error during plan)
Expected Behavior
I should be able to use the instance types listed at https://aws.amazon.com/opensearch-service/pricing/ in the
instance_type
property ofaws_elasticsearch_domain
Actual Behavior
Instead of using the instance types listed on the pricing page, I need to instead replace the ".search" suffix with ".elasticsearch"
Steps to Reproduce
terraform apply
Important Factoids
I believe this is because the aws_elasticsearch_domain is using the deprecated elasticsearchservice API instead of the new opensearch API.
See https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/service/opensearch@v1.6.0/types#OpenSearchPartitionInstanceType and https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/service/elasticsearchservice@v1.12.0/types#ESPartitionInstanceType
Suggested solutions:
Either:
References
The text was updated successfully, but these errors were encountered: