-
-
Notifications
You must be signed in to change notification settings - Fork 49
Description
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"
}
}
}