Skip to content

Datatamer/terraform-gcp-tamr-cloud-sql

Repository files navigation

Requirements

Name Version
terraform >= 1.0.0
google >= 5.0, <6.0.0
random > 3.0.0

Providers

Name Version
google >= 5.0, <6.0.0
random > 3.0.0

Modules

No modules.

Resources

Name Type
google_project_service.enable_sql resource
google_sql_database.tamr resource
google_sql_database_instance.tamr resource
google_sql_user.sql_dev_user resource
random_password.sql_tamr_user_password resource

Inputs

Name Description Type Default Required
name name of the cloud sql instance to create string n/a yes
project_id the project to create the sql instance in string n/a yes
activation_policy This specifies when the instance should be active. Can be either ALWAYS, NEVER or ON_DEMAND string "ALWAYS" no
backup_enabled True if backup configuration is enabled. bool true no
backup_point_in_time_recovery_enabled True if Point-in-time recovery is enabled. Will restart database if enabled after instance creation. bool true no
backup_start_time HH:MM format time indicating when backup configuration starts. string "06:00" no
cloudsql_availability_type The availability type of the Cloud SQL instance, high availability (REGIONAL) or single zone (ZONAL). string "REGIONAL" no
database_flags List of Cloud SQL flags that are applied to the database server. See more details
list(object({
name = string
value = string
}))
[] no
db_name name of the database string "doit" no
deletion_protection Set deletion protection on Cloud SQL instance. Setting this will protect instances from accidental deletion across all surfaces (API, gcloud, Cloud Console and Terraform). bool true no
disk_autoresize Enable disk to autoresize itself bool true no
disk_size size of the disk to use number 100 no
disk_type The disk type to use on the instance. should be either PD_SSD or PD_STANDARD string "PD_SSD" no
enable_private_ip Whether this instance should use a public or private ip address bool false no
labels labels to be attached to the resources created map(string) {} no
private_network_id The VPC network from which the Cloud SQL instance is accessible for private IP string "" no
region The region for the instance string "us-east1" no
require_ssl Set if SSL is required for the Cloud SQL instance. bool false no
ssl_mode Set up the SSL mode. If SSL is required, this value is TRUSTED_CLIENT_CERTIFICATE_REQUIRED. string "ALLOW_UNENCRYPTED_AND_ENCRYPTED" no
tier the machine type to use for the sql instance string "db-custom-1-3840" no

Outputs

Name Description
instance_name n/a
tamr_password n/a
uri n/a