Skip to content

[Enhancement]: Cross resource move support from aws_elasticsearch_domain to aws_opensearch_domain #39721

Open
@riconnon

Description

@riconnon

Description

AWS ElasticSearch service was renamed/rebranded to AWS OpenSearch service and domains in the former are automatically migrated to the latter.

The API for the ElasticSearch service remains in place for compatability and is still called by the aws_elasticsearch_domain and related resourced, but to use new features on domains the new API and resource type aws_opensearch_domain has to be used.

To best facilitate this the provider should support migrating resources from one to the other using a moved block.

Affected Resource(s) and/or Data Source(s)

  • aws_elasticsearch_domain
  • aws_opensearch_domain

Potential Terraform Configuration

resource "aws_opensearch_domain" "this" {
    domain_name = "example"
}

moved {
    from = aws_elasticsearch_domain.this
    to.  = aws_opensearch_domain.this
}

References

No response

Would you like to implement a fix?

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementRequests to existing resources that expand the functionality or scope.service/elasticsearchIssues and PRs that pertain to the elasticsearch service.service/opensearchIssues and PRs that pertain to the opensearch service.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions