When considering any database solution, price and security tend to be major factors. For Cloud Spanner, security is largely provided through Google Cloud IAM. Cloud Spanner supports resource-specific IAM policies down to the database, meaning project administrators can control which services and users can read, write, or modify databases within a given instance. As stated earlier in this chapter, it is a common pattern to maintain a single Cloud Spanner instance for a given project, and simply control access at the database layer.
Cloud Spanner administration
Cloud Spanner IAM Roles
In addition to the three primitive IAM roles (owner, editor, viewer), Cloud Spanner supports five product-specific IAM roles:
- roles/spanner.admin...