-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Add Cross region replication option for AlloyDB #13251
Comments
If possible, I would like to pick this up asap! :) cc @trodge / @rileykarson |
I'm curious, I haven't seen such API behaviour before - to create a secondary AlloyDB cluster there seems to be a 'secondarycreate' API call.. https://cloud.google.com/alloydb/docs/reference/rest/v1/projects.locations.clusters/createsecondary How would we go about implementing something like this, would this mean we need to create another AlloyDB resource, e.g. |
Update: it seems like we need to create a
|
I've prepped a PR which is ready for review, it introduces the 2 new resources:
|
Hmm- we may want to change the create call in the current resource based on a flag than introduce entirely new resources. That limits the opportunity for drift between the resource schemas substantially, I'm not entirely sure which would be better. FYI @ScottSuarez as reviewer, we may want to work out with the service team how we want to support this. |
For maintainability it would be preferred if the service team could simply add a flag to the For the sake of supporting this the Terraform Google provider, I'm unsure how long such a request with the service team might take. |
Heya @rileykarson / @ScottSuarez, is there any update on how we could possibly approach this? Or perhaps refactor it later? |
Given how there is no way to manage the secondary cluster independently and that it is always tied to the first I'd propose the following:
This is assuming the following from the API team.
|
Right on, I'll get to this today @ScottSuarez |
I was able to create a secondary cluster using the AlloyDB Cluster Terraform resource, which is super nice. Thank you for all of your effort on that! However, I noticed that the secondary instance was not created and I don't see a I was wondering, there a plan to implement the Secondary instance type in the terraform resource? |
GoogleCloudPlatform/magic-modules#9203 was merged 4 days ago, that should release next Monday assuming no surprises (along with promotion in GoogleCloudPlatform/magic-modules#9271, probably, and the week after if not). This just got released as piecemeal because we broke up the change into distinct parts. |
Part of provider 5.5 release |
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
Description
New or Affected Resource(s)
Potential Terraform Configuration
References
The text was updated successfully, but these errors were encountered: