sql

gruntwork-io/sql/google

Terraform Module HCL GOOGLE

Terraform modules for deploying Google Cloud SQL (e.g. MySQL, PostgreSQL) in GCP

Install
module "sql" {
source = "gruntwork-io/sql/google"
version = "0.6.0"
}
⭐ Source on GitHub 📦 Registry page
README

Cloud SQL Modules ![Maintained by Gruntwork.io](https://gruntwork.io/?ref=repo_google_cloudsql) ![GitHub tag (latest SemVer)](http://github.com/gruntwork-io/terraform-google-sql/releases/latest) !Terraform Version This repo contains modules for running relational databases such as MySQL and PostgreSQL on Google Cloud Platform (GCP) using Cloud SQL. Cloud SQL Architecture !Cloud SQL Architecture Features - Deploy a fully-managed relational database - Supports MySQL and PostgreSQL - Optional failover instances - Optional read replicas Learn This repo is a part of the Gruntwork Infrastructure as Code Library, a collection of reusable, battle-tested, production ready infrastructure code. If you’ve never used the Infrastructure as Code Library before, make sure to read How to use the Gruntwork

Inputs (9)
NameTypeDescriptionDefault
name_prefixstringThe name prefix for the database instance. Will be appended with a random string required
master_user_namestringThe username part for the default user credentials, i.e. 'master_user_name'@'mas required
projectstringThe project ID to host the database in. required
regionstringThe region to host the database in. required
master_user_passwordstringThe password part for the default user credentials, i.e. 'master_user_name'@'mas required
db_namestringName for the db"default"
postgres_versionstringThe engine version of the database, e.g. `POSTGRES_9_6`. See https://cloud.googl"POSTGRES_9_6"
machine_typestringThe machine type to use, see https://cloud.google.com/sql/pricing for more detai"db-f1-micro"
name_overridestringYou may optionally override the name_prefix + random string by specifying an ove""
Outputs (7)
db_name — Name of the default database
db — Self link to the default database
master_instance_name — The name of the database instance
master_ip_addresses — All IP addresses of the instance as list of maps, see https://www.terraform.io/docs/providers/google
master_private_ip — The private IPv4 address of the master instance
master_instance — Self link to the master instance
master_proxy_connection — Instance path for connecting with Cloud SQL Proxy. Read more at https://cloud.google.com/sql/docs/my
Resources (4)
google_compute_global_addressgoogle_compute_networkgoogle_service_networking_connectionrandom_id
Details
FrameworkTerraform Module
LanguageHCL
Version0.6.0
Cloud GOOGLE
★ Stars92
Forks103
Total downloads8.8k
Inputs9
Outputs7
Resources4
Examples7
Submodules1
LicenseApache-2.0
Namespacegruntwork-io
Updated