Difference between revisions of "Terraform resource: google sql database instance"

From wikieduonline
Jump to navigation Jump to search
Line 2: Line 2:
  
 
* <code>[[database_version]]: [[POSTGRES_15]], [[POSTGRES_16]]</code>
 
* <code>[[database_version]]: [[POSTGRES_15]], [[POSTGRES_16]]</code>
 +
 +
== Official example ==
 +
resource "google_sql_database_instance" "main" {
 +
  name            = "main-instance"
 +
  database_version = "POSTGRES_15"
 +
  region          = "us-central1"
 +
 +
  settings {
 +
    # Second-generation instance tiers are based on the machine
 +
    # type. See argument reference below.
 +
    tier = "db-f1-micro"
 +
  }
 +
}
  
 
   
 
   

Revision as of 12:13, 7 November 2024

google_sql_database_instance https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/sql_database_instance

Official example

resource "google_sql_database_instance" "main" {
 name             = "main-instance"
 database_version = "POSTGRES_15"
 region           = "us-central1"
 settings {
   # Second-generation instance tiers are based on the machine
   # type. See argument reference below.
   tier = "db-f1-micro"
 }
}


Related

See also

Advertising: