Skip to content

How to set EnableVersionUpgrade when creating/updating opensearchΒ #43

@nimu-highspot

Description

@nimu-highspot

Is your request related to a new offering from AWS?

Is this functionality available in the AWS provider for Terraform? See CHANGELOG.md, too.

  • No πŸ›‘: please wait to file a request until the functionality is avaialble in the AWS provider
  • Yes βœ…: please list the AWS provider version which introduced this functionality

Yes, please see the description below.

Is your request related to a problem? Please describe.

From the CFN doc "If you set the EnableVersionUpgrade update policy to true, you can update EngineVersion without interruption. When EnableVersionUpgrade is set to false, or is not specified, updating EngineVersion results in replacement."
https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-opensearchservice-domain.html#cfn-opensearchservice-domain-engineversion

However, we were unable to set "EnableVersionUpgrade" in Terraform. This resulted in data loss when upgrading OpenSearch using Terraform.

Could you please confirm whether EnableVersionUpgrade is supported by Terraform? If it is, could you provide guidance on how to configure it when creating and upgrading OpenSearch?

Describe the solution you'd like.

Allow user to set "EnableVersionUpgrade" in Terraform

Describe alternatives you've considered.

Additional context

terraform {
  required_version = ">= 1.1.7"

  # Adding hard AWS provider versioning to ensure S3 resources are created correctly
  required_providers {
    aws = {
      source  = "hashicorp/aws"
      version = "~> 4.22"
    }
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions