-
Notifications
You must be signed in to change notification settings - Fork 12
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 instructions for RDS restore from snapshot #223
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is awesome. I've suggested a couple of small tweaks.
} | ||
``` | ||
|
||
It is important to retain the original settings associated with the DB instance when restoring from the snapshot. Hence, most of the restore should be done through terraform code. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd probably replace;
Hence, most of the restore should be done through terraform code.
with "So don't make any other changes to this file."
Users can't do a restore any other way than by raising a PR with terraform changes, so the important thing here is that the only add the snapshot_identifier, and don't mess with anything else.
|
||
5. Merge the PR to master and check for the build pipeline to create the new DB instance with the same Identifier and endpoints. Cloud Platform can also apply your changes manually if this is time critical. | ||
|
||
Once the new DB instance is restored, your application should be able to access the database with the same database credentials and endpoint. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to add something about letting the CP team know they can delete the renamed database (if there is one)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added info on when users needs to inform about deleting the instance.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great. I like the > * .....
to pull out the bulleted list.
Related to: #30
This PR is related to recovering live RDS instance from snapshot.
Testing the Disaster recovery in a different namespace is currently not supported without complex steps involved using AWS console.
Revisit the ticket after the terraform provider support is available. Refer: hashicorp/terraform-provider-aws#9885