Skip to content
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

spec.forProvider.masterUserPasswordSecretRef shouldn't be required when creating a secondary Aurora cluster #1668

Closed
javierlopez-itech opened this issue Feb 20, 2023 · 1 comment · Fixed by #1669
Labels
bug Something isn't working

Comments

@javierlopez-itech
Copy link

I am trying to create a Global Aurora Cluster on AWS, the setup should look like this:

GlobalCluster

  • Regional Cluster 1 (Primary)
    • Instance 1a
    • Instance 1b
  • Regional Cluster 2 (Secondary)
    • Instance 2a
    • Instance 2b

The problem is that, when creating a new cluster spec.forProvider.masterUserPasswordSecretRef is mandatory for all clusters, no matter whether they are the primary or secondary cluster. It makes sense, that for the primary cluster this value is mandatory, but not for the second one. Right now I have the following problem:

  1. If I don't specify a value for spec.forProvider.masterUserPasswordSecretRef in the secondary cluster, Crossplane won't let me create it.

  2. If I do specify a value for spec.forProvider.masterUserPasswordSecretRef, Crossplane will let me create the CRD but AWS API will complain with the following error message:

create failed: cannot create DBCluster in AWS: InvalidParameterCombination: Cannot specify password for cross region replication cluster

So I'm afraid there is no way around that other than making masterUserPasswordSecretRef not mandatory but specify in the documentation that is actually mandatory if you only have one.

@javierlopez-itech javierlopez-itech added the bug Something isn't working label Feb 20, 2023
loalf added a commit to loalf/provider-aws that referenced this issue Feb 21, 2023
See this issue crossplane-contrib#1668 to get a better understanding of why we need to so.
@nashtapu-tibco
Copy link

@javierlopez-itech / @MisterMX which version is this fixed in?
I still see the issue in provider-aws:v0.43.1

      message: 'create failed: pre-create failed: neither a masterUserPasswordSecretRef
        is given, nor password autogeneration was enabled, not a restore is performed'
      reason: ReconcileError

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants