-
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
google_sql_database_instance PITR restore action #6848
google_sql_database_instance PITR restore action #6848
Comments
|
@doriandekoning This suggestion is different in that it proposes a way to create a new Database Instance using pitr rather that the enabling pitr through configuration. |
Oh my bad, you're right! I thought that was what the |
@doriandekoning you're welcome to give this a try! Depending on what sorts of things you see when you implement it, you may end up needing to do it as a separate resource. We can give you more help once you send out the PR for review. |
If you need some help while working on this, I'm happy to consult - post here if you need anything. :) |
@danawillow @ndmckinley Could you take a quick look at it and let me know what you think? If I'm in the right direction, I'll finish it up later this week. |
Tracked internally as b/170484123 |
This is done using the https://cloud.google.com/sql/docs/mysql/admin-api/rest/v1beta4/instances/clone endpoint, an alternative create endpoint. It's unclear how the SQL settings are applied when cloning- we'd likely need to call into Update, which also won't work if HasChange is used. |
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. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
This issue was originally opened by @doriandekoning as hashicorp/terraform#25660. It was migrated here as a result of the provider split. The original body of the issue is below.
Current Terraform Version
Use-cases
Create an gcloud instance clone from a specific point in time of another instance.
Attempted Solutions
Click some buttons in the gcloud dashboard to restore a PiT
Proposal
Support enabling
pointInTimeRecoveryEnabled
for an sql cloud instance together with an argument that supports setting the instance from which a point in time should be restored and which point in time should be restored. An illustration:References
https://cloud.google.com/sql/docs/postgres/backup-recovery/pitr
If a decision is made on the arguments (and a merge request would be appreciated) I could take a shot at implementing this myself.
The text was updated successfully, but these errors were encountered: