[Bug]: r/aws_neptune_cluster_instance: engine_version parameter should be ignored #33467
Labels
bug
Addresses a defect in current functionality.
service/neptune
Issues and PRs that pertain to the neptune service.
Milestone
Terraform Core Version
1.5.7
AWS Provider Version
5.16.2
Affected Resource(s)
Expected Behavior
If a user currently provides the
engine_version
parameter on anaws_neptune_cluster_instance
resource and then goes to perform an engine upgrade of the hostingaws_neptune_cluster
that owns that instance, Terraform forces an instance replacement for any affected instances in that cluster.Engine version upgrades in Neptune are handled at a cluster level, and not at an instance level. All instances in a cluster are required (and forced) to be on the same engine version as the hosting cluster. Upon an engine version upgrade, Neptune will push the latest engine code to each instance and force a reboot of each instance. There is no present requirement to replace all instances in a cluster when performing an engine upgrade.
Per the AWS CLI man page for
aws neptune create-db-instance
andaws neptune modify-db-instance
, the--engine-version
parameter is listed as:As such, the
aws_neptune_cluster_instance
resource schema needs to be altered to mirror this lack of constraint.Actual Behavior
The current functionality forces an instance replacement after changing the
engine_version
parameter on both a cluster and all affected instances within the cluster.Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
Initial configuration file:
Steps to Reproduce
After the initial
apply
, change theengine_version
parameters for both resources to1.2.0.2
and notice that Terraform is asking for the instance to be destroyed and replaced.Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
Yes
The text was updated successfully, but these errors were encountered: