-
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
Support creating an alloydb cluster from backup. Data call to fetch backup ids with filters. #13757
Comments
Do we have any updates on when this will be implemented? It is blocking our deployment of AlloyDB to our Customers. |
This was marked "Backlog" which indicates we're not certain this is a feature the provider should support. Not sure I didn't comment with context at the time, sorry! That would have been:
However, probably better doesn't mean there aren't valid reasons to do so. Based on that SQL resource as a precedent I'll move this to goals and tag it for the appropriate service team at Google to review. That doesn't mean there is a direct assignee at the moment, and scheduling will be up to them. |
FYI I am working on this at the moment. No ETA yet, but starting to make progress. |
@GoogleMarcfont is this solved now ? |
Community Note
Description
Alloydb has backup recovery features eerily similar to rds snapshots. You can create a new cluster using an existing backup as documented here. As far as I can tell this is not supported in the current provider and there is no terraform-native way to create a new alloydb cluster from an alloydb backup.
rds_cluster supports the snapshot_identifier argument which allows you to provide the snapshot ID to the rds_cluster resource and it will launch the cluster from that backup.
I think it is valuable to be able to replicate this functionality by providing an optional
backup_identifier
argument to thegoogle_alloydb_cluster
resource. In order for this to work there would also need to be a new data sourcegoogle_alloydb_backup_version
or something to be able to fetch and filter the backups to select which one to recover from. modeling it from db_snapshot may be a valuable starting point.This would allow us to create recovery clusters from terraform and is valuable for DR simulations and any other use case we might have for creating clusters from backups, like copying lost data back to the main cluster after a botched migration or creating an exceptionally large sibling cluster for nightly processing .
New or Affected Resource(s)
Potential Terraform Configuration
References
b/284523617
The text was updated successfully, but these errors were encountered: