Terraform AWS elastic search version upgrade to Opensearch 1.0

I am trying to upgrade the domain from elastic search 7.10 to OpenSearch 1.0
It’s pretty straight forward to update via web app, just like how its shown below but how do we do this via terraform?

Currently, this is what I have in my terraform main.tf file:

resource “aws_elasticsearch_domain” “esD” {
count = 1
domain_name = “elastic_search”
elasticsearch_version = "7.10"
}

How do I upgrade my elastic search version to Open search 1.0 via Terraform? I am not able to find out any documentation in regards to this, is this something thats being worked on or Am I missing something? Any suggestion or help is much appreciated.

Changing the version to this worked.
elasticsearch_version = "OS_1.0"