Skip to content

v2.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 05 Dec 10:30
· 6 commits to main since this release
0388438

2.0.0 (2023-12-05)

Features

  • provider: migrate to dedicated OpenSearch provider (#59) (0388438)

BREAKING CHANGES

  • All elasticsearch_* resources have been renamed to opensearch_*.
  • Unfortunately, terraform state mv and moved blocks are not working.
  • All affected elasticsearch_* resources must be migrated manually after the upgrade...
    terraform state pull > elasticsearch-provider.tfstate
    jq '.resources[].type |= sub("^elasticsearch_(opensearch_)?"; "opensearch_")' elasticsearch-provider.tfstate > opensearch-provider.tfstate
    terraform state replace-provider -state=opensearch-provider.tfstate -auto-approve phillbaker/elasticsearch opensearch-project/opensearch
    terraform state push opensearch-provider.tfstate
    
  • Additionally, you have to migrate all legacy index templates to the new format. Actually the aliases, mappings, and settings configs are now nested underneath template: https://opensearch.org/docs/latest/im-plugin/index-templates/