Application Design Center lets you configure connections and parameters
for Spanner instances, a fully managed
database service that combines relational, graph, key-value, and search
capabilities with global transactional consistency and synchronous replication.
You can configure instances supporting GoogleSQL or PostgreSQL
dialects based on the
terraform-google-cloud-spanner
Terraform module on GitHub.
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 |
|---|---|---|
|
Using Spanner in a virtual machine instance | |
|
Configure an instance with a service account | |
|
Connect to Google Cloud services |
Required configuration parameters
If your template contains 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 can't 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 Configuration area, select Show advanced fields.
| Feature | Parameter name | Description and constraint information | Background information |
|---|---|---|---|
| Instance Size | Num Nodes |
nodeCount | Compute capacity, nodes, and processing units |
| Instance Size | Processing Units |
processingUnits | Compute capacity, nodes, and processing units |
Instance Display Name |
displayName | Change the display name | |
Create Instance |
By default, a new Spanner instance is created. Clear the checkbox if you want to avoid creating a new instance and use an existing one instead. | Create and manage instances | |
Enable Autoscaling |
Select to enable autoscaling on the Spanner instance. | Autoscaling overview | |
Instance IAM |
A comma-separated list of IAM role bindings on the instance. For example, user:dana@example.com=>roles/spanner.databaseAdmin, user:alex@example.com=>roles/spanner.databaseAdmin. |
IAM overview | |
| Instance Labels | Key |
labels | Label an instance |
| Instance Labels | Value |
labels | Label an instance |
| Database Config | Key |
The database_config map object key. |
database_config |
| Database Config | Version Retention Period |
versionRetentionPeriod | Point-in-time recovery (PITR) overview |
| Database Config | DDL |
ddl | GoogleSQL or PostgreSQL |
| Database Config | KMS Key Name |
kmsKeyName | Customer-managed encryption keys (CMEK) overview |
| Database Config | Deletion Protection |
Select to prevent Terraform from deleting the database. | deletion_protection |
| Database Config | Database IAM |
A comma-separated list of IAM role bindings on the database. For example, user:dana@example.com=>roles/spanner.databaseAdmin, user:alex@example.com=>roles/spanner.databaseAdmin. |
IAM overview |
| Database Config | Enable Backup |
By default, an automated database backup is created. If you don't want a backup, clear the checkbox. | Backups overview |
| Database Config | Backup Retention |
retentionDuration | Incremental backups |
| Database Config | Create DB |
By default, a database is created. If you don't want a database, clear the checkbox. | Databases overview |
Cron Spec Text |
text | Create and manage backup schedules | |
Min Processing Units |
minProcessingUnits | Managed autoscaler | |
Max Processing Units |
maxProcessingUnits | Managed autoscaler | |
Min Nodes |
minNodes | Managed autoscaler | |
Max Nodes |
maxNodes | Managed autoscaler | |
High Priority CPU Utilization Percent |
highPriorityCpuUtilizationPercent | Managed autoscaler | |
Storage Utilization Percent |
storageUtilizationPercent | Managed autoscaler | |
Replica Location |
location | Asymmetric read-only autoscaling | |
Override Min Nodes |
AutoscalingConfigOverrides | Managed autoscaler parameters | |
Override Max Nodes |
AutoscalingConfigOverrides | Managed autoscaler parameters | |
Edition |
Edition | Spanner editions overview | |
Default Backup Schedule Type |
defaultBackupScheduleType | Default backup schedules | |
Force Destroy |
Select to delete backups when you delete the Spanner instance. | force_destroy | |
Use Full Backup Spec |
fullBackupSpec | Backup schedules | |
Use Incremental Backup Spec |
incrementalBackupSpec | Incremental backups |