Skip to main content

GCP Spanner Database

Google Cloud Spanner is a fully-managed, horizontally-scalable, strongly-consistent relational database service. A Spanner database is the logical container that holds your tables, schemas and data within a Spanner instance. It can be protected with automatic replication across zones and regions, integrates with IAM for access control, and supports both Google-managed and customer-managed encryption keys.
For full details see the official documentation: https://cloud.google.com/spanner/docs.

Terrafrom Mappings:

  • google_spanner_database.name

Supported Methods​

  • GET: Get a gcp-spanner-database by its "instances|databases"
  • LIST
  • SEARCH: Search for gcp-spanner-database by its "instances"

gcp-cloud-kms-crypto-key​

If the Spanner database is encrypted with a customer-managed encryption key (CMEK), Overmind will create a link to the corresponding Cloud KMS Crypto Key. This relationship is important for understanding encryption dependencies and for ensuring that key rotation or deletion does not inadvertently compromise database availability.