Skip to content

extenda/tf-module-gcp-spanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Requirements

Name Version
terraform >= 1.4.6
google ~> 6.12.0

Providers

Name Version
google ~> 6.12.0

Modules

No modules.

Resources

Name Type
google_spanner_backup_schedule.full-backup resource
google_spanner_database.spanner_database resource
google_spanner_instance.spanner_instance resource

Inputs

Name Description Type Default Required
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

Outputs

Name Description
database_names An identifier for the resource with format {{instance}}/{{name}}
instance_id An identifier for the resource with format {{project}}/{{name}}

About

Terraform module for creating Cloud Spanner resources

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages