mirror of
https://github.com/floci-io/floci.git
synced 2026-11-22 21:50:46 -05:00
* feat(opensearch): serve the legacy Elasticsearch Service 2015-01-01 API `aws es` and Terraform's aws_elasticsearch_domain call the 2015-01-01 API, which Floci did not route, so every call got UnknownOperationException. ElasticsearchController serves the domain lifecycle, ListDomainNames and the tag operations on that path by delegating to OpenSearchController, renaming only the members the legacy model spells differently: ElasticsearchVersion (bare "7.10", stored as "Elasticsearch_7.10") and ElasticsearchClusterConfig. A legacy create without a version gets Elasticsearch 7.10 rather than the OpenSearch default. * fix(opensearch): reject blank legacy ElasticsearchVersion, report legacy instance types ElasticsearchVersionString's pattern matches no blank or non-string value, so CreateElasticsearchDomain now returns ValidationException instead of storing an empty engine version. ESPartitionInstanceType lists only *.elasticsearch types, so the legacy responses rewrite the store's *.search spelling (including the m5.large.search default). The legacy test methods get distinct @Order values. * fix(opensearch): store legacy .elasticsearch instance types as .search, accept OS_X.Y The legacy API now respells ElasticsearchClusterConfig.InstanceType from *.elasticsearch to *.search on create and update, so the 2021 API reports t3.small.search and the legacy API maps it back. ElasticsearchVersion's OS_X.Y form is stored as OpenSearch_X.Y instead of Elasticsearch_OS_X.Y. Replaces the jakarta.ws.rs wildcard import with explicit imports.