FEATURES PRICING ABOUT DOCS LOGIN

google_sql_database_instance

Creates a new Google SQL Database Instance. For more information, see the official documentation, or the JSON API.

Example Usage

Example creating a SQL Database.

resource "google_sql_database_instance" "master" {
  name = "master-instance"

  settings {
    tier = "D0"
  }
}

Argument Reference

The following arguments are supported:


The required settings block supports:

The optional settings.database_flags sublist supports:

The optional settings.backup_configuration subblock supports:

The optional settings.ip_configuration subblock supports:

The optional settings.ip_configuration.authorized_networks[] sublist supports:

The optional settings.location_preference subblock supports:

The optional replica_configuration block must have master_instance_name set to work, cannot be updated, and supports:

Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:


See the source of this document at Terraform.io

REQUEST A DEMO