hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.87k stars 9.21k forks source link

RDS global cluster major version upgrade when the global cluster is created from existing DB Cluster #28761

Open Rustege opened 1 year ago

Rustege commented 1 year ago

Description

When we create rds global cluster from an existing cluster (Reference), we couldn't perform RDS major version upgrade.

Reasons

At present I couldn't find a way to perform major version upgrade when we create global cluster from an existing cluster.

Errors received:

  aws_rds_cluster.rds_cluster[0]: Modifying... [id=deve-inspec-rds0-module-aurora-postgresql]
       ╷
       │ Error: updating RDS Cluster (deve-imodule-aurora-postgresql): InvalidParameterCombination: Major Version Upgrade isn't supported in a single member of a global cluster. Use ModifyGlobalCluster to upgrade all the members.
       │    status code: 400, request id: xxxx
       │ 
       │   with aws_rds_cluster.rds_cluster_secondary[0],
       │   on aurora-secondary.tf line 49, in resource "aws_rds_cluster" "rds_cluster_secondary":
       │   49: resource "aws_rds_cluster" "rds_cluster_secondary" {
       │ 
       ╵
       ╷
       │ Error: updating RDS Cluster (deve-module-aurora-postgresql): InvalidParameterCombination: Major Version Upgrade isn't supported in a single member of a global cluster. Use ModifyGlobalCluster to upgrade all the members.
       │    status code: 400, request id: xxx
       │ 
       │   with aws_rds_cluster.rds_cluster[0],
       │   on aurora.tf line 39, in resource "aws_rds_cluster" "rds_cluster":
       │   39: resource "aws_rds_cluster" "rds_cluster" {

References

No response

Would you like to implement a fix?

None

github-actions[bot] commented 1 year ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue

CharlesDMoore commented 2 months ago

Has there been any update with this? Only workaround we've been able to do is upgrading the global cluster manually and then matching TF code to the new values.