-
Notifications
You must be signed in to change notification settings - Fork 9.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow rds_global_cluster engine_version upgrade #18598
Conversation
1eee3ef
to
e5d4b10
Compare
e5d4b10
to
add0522
Compare
add0522
to
8b3c2f8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few nits, but looks good! 🎉
Acceptance on commercial:
--- PASS: TestAccAWSRdsGlobalCluster_disappears (19.42s)
--- PASS: TestAccAWSRdsGlobalCluster_Engine_Aurora (23.89s)
--- PASS: TestAccAWSRdsGlobalCluster_EngineVersion_Aurora (23.94s)
--- PASS: TestAccAWSRdsGlobalCluster_EngineVersion_AuroraPostgresql (23.99s)
--- PASS: TestAccAWSRdsGlobalCluster_basic (24.01s)
--- PASS: TestAccAWSRdsGlobalCluster_EngineVersion_AuroraMySQL (24.17s)
--- PASS: TestAccAWSRdsGlobalCluster_DatabaseName (35.80s)
--- PASS: TestAccAWSRdsGlobalCluster_StorageEncrypted (35.85s)
--- PASS: TestAccAWSRdsGlobalCluster_DeletionProtection (63.78s)
--- PASS: TestAccAWSRdsGlobalCluster_SourceDbClusterIdentifier_StorageEncrypted (160.08s)
--- PASS: TestAccAWSRdsGlobalCluster_SourceDbClusterIdentifier (160.22s)
--- PASS: TestAccAWSRdsGlobalCluster_EngineVersionUpdateMinor (1129.05s)
--- PASS: TestAccAWSRdsGlobalCluster_EngineVersionUpdateMajor (1694.55s)
GovCloud skips all tests.
} | ||
input.AllowMajorVersionUpgrade = aws.Bool(true) | ||
input.EngineVersion = aws.String(engineVersion) | ||
err := resource.Retry(5*time.Minute, func() *resource.RetryError { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think current best practice is to create a const
in internal/service/rds/waiter/waiter.go
for these timeout times.
DBClusterIdentifier: aws.String(clusterMemberArn.(string)), | ||
EngineVersion: aws.String(engineVersion), | ||
} | ||
err := resource.Retry(5*time.Minute, func() *resource.RetryError { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same
.changelog/18598.txt
Outdated
@@ -0,0 +1,3 @@ | |||
```release-note:enhancement | |||
resource/aws_rds_global_cluster: Allow `engine_version` to be upgraded. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resource/aws_rds_global_cluster: Allow `engine_version` to be upgraded. | |
resource/aws_rds_global_cluster: Allow `engine_version` to be upgraded in place |
This has been released in version 3.38.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Allow
rds_global_cluster
engine_version
upgrades. Two different paths are required because the methods for upgrading a major version is different than upgrading a minor version. Because major version upgrades are applied immediately, minor version upgrades are applied immediately also despite the possibility to wait until a maintenance window.Community Note
Closes #18214
Output from acceptance testing: