| databases |
The list of the database names, which cannot be changed after creation. Values are of the form [a-z][-a-z0-9]*[a-z0-9 |
list(object({ name = string ddl = optional(list(string)) dialect = optional(string) enable_drop_protection = optional(bool) version_retention_period = optional(string) backup_schedule = optional(string) backup_retention_duration = optional(string) })) |
[] |
no |
| display_name |
The descriptive name for this instance as it appears in UIs. Must be unique per project and between 4 and 30 characters in length. |
string |
n/a |
yes |
| edition |
The edition selected for this instance. Different editions provide different capabilities at different price points. Possible values are: EDITION_UNSPECIFIED, STANDARD, ENTERPRISE, ENTERPRISE_PLUS. |
string |
n/a |
yes |
| enable_autoscaling |
If true, the Spanner instance will use autoscaling. If false, it uses static num_nodes or processing_units. |
bool |
false |
no |
| force_destroy |
Whether to force destroy the instance and its backups. |
bool |
false |
no |
| high_priority_cpu_utilization_percent |
Target high priority CPU utilization percentage for autoscaling. |
number |
65 |
no |
| instance_config |
The name of the instance's configuration which defines the geographic placement and replication of your databases in this instance. It determines where your data is stored. |
string |
"regional-europe-west1" |
no |
| instance_labels |
An object containing a list of key: value pairs |
map(string) |
{ "created": "terraform" } |
no |
| 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. |
string |
n/a |
yes |
| max_nodes |
Maximum number of nodes for autoscaling. At most one of either max_nodes or max_processing_units can be present. Allowed values are multiples of 1 between 1 and 10. |
number |
null |
no |
| max_processing_units |
Maximum number of processing units for autoscaling. At most one of either max_nodes or max_processing_units can be present. Allowed values are multiples of 1000 between 1000 and 10000. |
number |
null |
no |
| min_nodes |
Minimum number of nodes for autoscaling. At most one of either min_nodes or min_processing_units can be present. Allowed values are multiples of 1 between 1 and 10. |
number |
null |
no |
| min_processing_units |
Minimum number of processing units for autoscaling. At most one of either min_nodes or min_processing_units can be present. Allowed values are multiples of 1000 between 1000 and 10000. |
number |
null |
no |
| num_nodes |
The number of nodes allocated to this instance. At most one of either node_count or processing_units can be present in terraform. |
string |
null |
no |
| processing_units |
The number of processing units allocated to this instance. At most one of processing_units or node_count can be present in terraform. |
string |
null |
no |
| project_id |
The ID of the project in which the resource belongs. |
string |
n/a |
yes |
| storage_utilization_percent |
Target storage utilization percentage for autoscaling. |
number |
70 |
no |