Difference between revisions of "Terraform resource: google sql database instance"
Jump to navigation
Jump to search
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | google_sql_database_instance https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/sql_database_instance | + | google_sql_database_instance [https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/sql_database_instance doc] |
* <code>[[database_version]]: [[POSTGRES_15]], [[POSTGRES_16]]</code> | * <code>[[database_version]]: [[POSTGRES_15]], [[POSTGRES_16]]</code> | ||
* <code>[[deletion_protection_enabled]]</code> | * <code>[[deletion_protection_enabled]]</code> | ||
| + | * <code>[[google_sql_user]]</code> | ||
Latest revision as of 13:11, 16 July 2026
google_sql_database_instance doc
Official example[edit]
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"
}
}
Relevants Outputs[edit]
# Output Connection Details
output "connection_name" {
value = google_sql_database_instance.your-postgres-instance.connection_name
}
output "private_ip_address" {
value = google_sql_database_instance.your-postgres-instance.private_ip_address
}
Related[edit]
See also[edit]
Advertising: