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

Add instructions for RDS restore from snapshot #223

Merged
merged 6 commits into from
Feb 20, 2020

Conversation

poornima-krishnasamy
Copy link
Contributor

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

Copy link
Contributor

@digitalronin digitalronin left a 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.
Copy link
Contributor

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.
Copy link
Contributor

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)?

Copy link
Contributor Author

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.

Copy link
Contributor

@digitalronin digitalronin left a 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants