-
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_major_version_upgrade
is missing from aws_rds_cluster_instance
#13874
Comments
Reference: #13874 Currently needs some additional work (e.g. better waiters in RDS DB Cluster or RDS DB Cluster Instance handling) so testing can pass. Output from acceptance testing: ``` TestAccAWSRDSCluster_AllowMajorVersionUpgrade: resource_aws_rds_cluster_test.go:160: Step 4/4 error: terraform failed: exit status 1 stderr: Error: Failed to modify RDS Cluster (tf-acc-test-340394054292885352): InvalidDBClusterStateFault: Cannot modify engine version without a healthy primary instance in DB cluster: tf-acc-test-340394054292885352 status code: 400, request id: 2607bd75-12b6-40b5-a47b-e601680d4091 --- FAIL: TestAccAWSRDSCluster_AllowMajorVersionUpgrade (1015.90s) ```
Reference: #13874 Output from acceptance testing in AWS Commercial: ``` --- PASS: TestAccAWSRDSCluster_AllowMajorVersionUpgrade (1248.28s) ``` Output from acceptance testing in AWS GovCloud (US): ``` --- PASS: TestAccAWSRDSCluster_AllowMajorVersionUpgrade (1457.47s) ```
…14709) * resource/aws_rds_cluster: Add allow_major_version_upgrade argument Reference: #13874 Output from acceptance testing in AWS Commercial: ``` --- PASS: TestAccAWSRDSCluster_AllowMajorVersionUpgrade (1248.28s) ``` Output from acceptance testing in AWS GovCloud (US): ``` --- PASS: TestAccAWSRDSCluster_AllowMajorVersionUpgrade (1457.47s) ``` * Update website/docs/r/rds_cluster_instance.html.markdown Co-authored-by: angie pinilla <[email protected]> * Update website/docs/r/rds_cluster_instance.html.markdown Co-authored-by: angie pinilla <[email protected]>
Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label. If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you! |
Stale label should be removed... |
After some review, and testing, it looks like adding |
Closing since feature to upgrade major version on clusters was merged in #14709 |
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. |
Community Note
Terraform Version
Terraform v0.12.26
aws providers version 2.66 (I believe, I was more watching the user)
Affected Resource(s)
It seems that this is missing implementation of the
AllowMajorVersionUpgrade
that CloudFormation uses. There was a similar bug on the core terraform project for theaws_db_instance
from 2015, but I figured this issue was pretty self-explanatory. The cluster instance is an Aurora instance, and we were trying to upgrade the major version, but it hadAllowMajorVersionUpgrade: false
set via CloudFormation.We can use CloudFormation or the AWS CLI to adjust this value, but wanted to bring it to your attention that this config value was missing, even in the documentation. We did try to use the value from the regular
aws_db_instance
, which wasallow_major_version_upgrade
, but terraform output that the property was unexpected.The text was updated successfully, but these errors were encountered: