managed database
A database service a cloud provider runs for you, handling machines, patching and backups while you manage settings and data.
In more detail
You choose the engine, size and settings, and the provider keeps the servers running. The data is still yours to protect: deleting or replacing the service deletes the data unless backups or deletion protection are in place.
Example
In Terraform it is a resource like any other, but one where a replacement destroys data. Protect it with prevent_destroy, backups and review, and keep its password out of state where the provider supports write-only arguments.Related terms
- database — A program that stores data in an organised way and answers questions about it, such as PostgreSQL.
- prevent_destroy — A lifecycle setting that makes any plan fail if it would destroy that resource, including as part of a replacement.
- resource replacement — When Terraform must destroy a resource and create a new one because a changed setting cannot be updated in place.
- write-only argument — A resource argument, added in Terraform 1.11, that is sent to the provider but never stored in plan or state, typically a password.
Taught in
- What State Really Is And Why It Is Needed — Infrastructure as Code with Terraform
- Simulating A Managed Database — Infrastructure as Code with Terraform