Terraform module which creates SQL INSTANCE resources on GCP.
locals {
name = "quarks-pocs"
project = "quarks-pocs"
region = "us-east1"
}
provider "google" {
project = local.project
region = local.region
}
module "database_instance" {
source = "git::https://github.com/quarks-labs/gcp-container-cluster-module.git"
project = local.project
region = local.region
name = local.name
database_version = "POSTGRES_14"
deletion_protection = false
private_network = {
enabled = false
}
databases = [{
name = "zamp-pocs"
}]
users = [{
name = "zamp",
password = "zamp@2057"
}]
settings = {
disk_size = "20"
tier = "db-f1-micro"
disk_type = "PD_SSD"
ip_configuration = {
ipv4_enabled = true
authorized_networks = [{
name = "allow-all",
range = "0.0.0.0/0"
}]
}
}
}
Name | Version |
---|---|
terraform | >= 0.14 |
5.24.0 |
Name | Version |
---|---|
5.24.0 | |
google-beta | n/a |
No modules.
Name | Type |
---|---|
google-beta_google_compute_global_address.this | resource |
google-beta_google_service_networking_connection.this | resource |
google-beta_google_sql_database_instance.this | resource |
google_sql_database.this | resource |
google_sql_user.this | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
database_version | n/a | string |
n/a | yes |
databases | n/a | list(object({ |
n/a | yes |
deletion_protection | n/a | bool |
n/a | yes |
name | n/a | string |
n/a | yes |
private_network | n/a | object({ |
{ |
no |
project | n/a | string |
n/a | yes |
region | n/a | string |
n/a | yes |
root_password | n/a | string |
"" |
no |
settings | n/a | object({ |
n/a | yes |
users | n/a | list(object({ |
n/a | yes |
Name | Description |
---|---|
instance | n/a |