-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Open
Labels
bugAddresses a defect in current functionality.Addresses a defect in current functionality.service/elasticsearchIssues and PRs that pertain to the elasticsearch service.Issues and PRs that pertain to the elasticsearch service.
Description
Terraform Core Version
1.9.5
AWS Provider Version
5.66.0
Affected Resource(s)
- aws_elasticsearch_domain
Expected Behavior
If the resource is planned for an upgrade with a unsupported target version terraform should fail instead of resulting of a full cluster destroy / create operation.
Actual Behavior
If the target version is not listed as compatible the provider instructs terraform to delete the resource first and then create a new cluster with the target version resulting on a full cluster recreation. This is usually not what users want.
Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
resource "aws_elasticsearch_domain" "this" {
domain_name = "test-opensearch-cluster"
elasticsearch_version = "OpenSearch_1.0"
cluster_config {
instance_type = "t3.small.elasticsearch"
instance_count = 1
}
}
Steps to Reproduce
- Create the cluster with version
OpenSearch_1.0
- Change
elasticsearch_version
fromOpenSearch_1.0
toOpensearch_1.3
( note that there is a typo in the target version ) - Run terraform apply
- The cluster is destroyed ( since target version is not listed as compatible )
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
Yes
Metadata
Metadata
Assignees
Labels
bugAddresses a defect in current functionality.Addresses a defect in current functionality.service/elasticsearchIssues and PRs that pertain to the elasticsearch service.Issues and PRs that pertain to the elasticsearch service.