Spanner is a fully managed, mission-critical database service that brings together relational, graph, key-value, and search. Spanner offers transactional consistency at global scale, automatic, synchronous replication for high availability, and support for the following SQL dialects:
- GoogleSQL
- PostgreSQL
For more information, see Instances overview .
This document describes the connections and parameters you can configure when using App Design Center to create a Spanner instance. The configuration parameters are based on the terraform-google-cloud-spanner Terraform module.
Component connections
The following table includes the components that you can connect to a Spanner instance, and the resulting updates to your application and its generated Terraform code.
Connected component
Application updates
Background information
- The Compute Engine instances can read and write data in the Spanner instance.
- The roles/spanner.databaseAdminrole is added to the Compute Engine instance template service account.
- The Compute Engine service account is added as an IAM user to the Spanner instance.
- The service account has access to the Spanner instance.
- The service account is added as an IAM user to the Spanner instance.
- The Cloud Run service can manage the Spanner instance.
- The Spanner connection details are added to the Cloud Run environment variables.
- The roles/spanner.databaseAdminrole is added to the Cloud Run service account.
- The Cloud Run service account IAM information is added to the Spanner instance.
Required configuration parameters
If your template includes a Spanner component, you must configure the following parameters before you deploy.
| Parameter name | Description and constraints | Background information | 
|---|---|---|
| Project ID | The project where you want to deploy the Spanner instance. | Configure components | 
| Instance Name | A unique identifier for the instance, which cannot be changed after the instance is created. The name must be between 6 and 30 characters in length. | name | 
| Instance Config | config | Instance configurations | 
Optional configuration parameters
The following parameters are optional. To display advanced parameters, in the Configurationarea, select Show advanced fields.
Feature
Parameter name
Description and constraint information
Background information
Create Instance
Instance IAM
user:user1@cymbalgroup.com=>roles/spanner.databaseAdmin, user:user2@cymbalgroup.com=>roles/spanner.databaseAdmin 
Database IAM
user:user1@cymbalgroup.com=>roles/spanner.databaseAdmin, user:user2@cymbalgroup.com=>roles/spanner.databaseAdmin 
Enable Backup
Create DB

