Giter VIP home page Giter VIP logo

terraform-google-cloudsql's Introduction

Google Cloud Platform - Cloud SQL

Examples

  • Standalone MySQL Instance (Zonal)
module "cloudsql-mysql" {
  source = "git::ssh://[email protected]:google-terraform-modules/terraform-google-cloudsql.git"

  general = {
    name       = "mydatabase"
    env        = "dev"
    region     = "europe-west1"
    db_version = "MYSQL_5_6"
  }

  instance = {
    zone = "b"
  }
}
  • PostgreSQL Instance HA Cluster (Regional)
module "cloudsql-postgres-ha" {
  source = "git::ssh://[email protected]:google-terraform-modules/terraform-google-cloudsql.git"

  general = {
    name       = "mydatabase"
    env        = "dev"
    region     = "europe-west1"
    db_version = "POSTGRES_9_6"
  }

  instance = {
    zone              = "b"
    availability_type = "REGIONAL"
  }
}

Inputs

Name Description Type Default Required
authorized_gae_applications A list of Google App Engine (GAE) project names that are allowed to access this instance list <list> no
general General configuration map - yes
instance Instance configuration map - yes
labels Global labels map <map> no

Outputs

Name Description
instance_sql_ipv4 The IPv4 address assigned
instance_sql_ipv4_time_to_retire The time this IP address will be retired, in RFC 3339 format
server_ca_cert The CA Certificate used to connect to the SQL Instance via SSL
server_ca_cert_common_name The CN valid for the CA Cert
server_ca_cert_create_time Creation time of the CA Cert
server_ca_cert_expiration_time Expiration time of the CA Cert
server_ca_cert_sha1_fingerprint SHA Fingerprint of the CA Cert
users_self_link The URL of the created resource

terraform-google-cloudsql's People

Contributors

orisano avatar perriea avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.