cloudsql

JamesWoolfenden/cloudsql/gcp

Terraform Module HCL GCP

A module to create a private database setup

Install
module "cloudsql" {
source = "JamesWoolfenden/cloudsql/gcp"
version = "0.2.20"
}
plain text: /constructs/tfmod-jameswoolfenden-cloudsql-gcp/install.txt
⭐ Source on GitHub 📦 Registry page
README

terraform-gcp-cloudsql ![Build Status](https://github.com/JamesWoolfenden/terraform-gcp-cloudsql) ![Latest Release](https://github.com/JamesWoolfenden/terraform-gcp-cloudsql/releases/latest) ![pre-commit](https://github.com/pre-commit/pre-commit) ![checkov](https://www.checkov.io/) The beginnings of a cloudsql module for GCP, currently targeting a private endpoint. Usage You need to have enabled the API's for this to work if you haven't used this part of GCP before: servicenetworking.googleapis.com sqladmin.googleapis.com Add module.cloudsql.tf to your code:- ``terraform module cloudsql { source = "JamesWoolfenden/cloudsql/gcp" version = "0.1.13" name = var.name network_name = var.network_name database = var.database users = var.users } ` You can also create databases with this module and

Inputs (8)
NameTypeDescriptionDefault
network_namestringThe name of the VCP to provision this in to required
namestringThe name of the database instance required
require_sslboolRequire SSL connections or not.true
mw_daynumber1
mw_hournumber12
databaselist(object({ name = strinA list of objects that describes if any databases to be created[]
userslist(object({ name = sA list of user that belong to a database instance[]
instancemap(any){ "database_version": "POSTGRES_14",
Outputs (4)
vpc_connection
private_ip_address
network
instance
Resources (5)
google_compute_global_addressgoogle_service_networking_connectiongoogle_sql_databasegoogle_sql_database_instancegoogle_sql_user
Details
FrameworkTerraform Module
LanguageHCL
Version0.2.20
Cloud GCP
Total downloads5.7k
Inputs8
Outputs4
Resources5
NamespaceJamesWoolfenden
Updated