mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-07-08 19:18:30 +00:00
update google_sql_database_instance private IP example docs (#2763)
Updated sql documentation for invalid names.
This commit is contained in:
parent
e9cb61859b
commit
00f87a3da2
|
@ -113,11 +113,11 @@ resource "google_sql_database_instance" "postgres" {
|
||||||
|
|
||||||
```hcl
|
```hcl
|
||||||
resource "google_compute_network" "private_network" {
|
resource "google_compute_network" "private_network" {
|
||||||
name = "private_network"
|
name = "private-network"
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "google_compute_global_address" "private_ip_address" {
|
resource "google_compute_global_address" "private_ip_address" {
|
||||||
name = "private_ip_address"
|
name = "private-ip-address"
|
||||||
purpose = "VPC_PEERING"
|
purpose = "VPC_PEERING"
|
||||||
address_type = "INTERNAL"
|
address_type = "INTERNAL"
|
||||||
prefix_length = 16
|
prefix_length = 16
|
||||||
|
@ -132,7 +132,7 @@ resource "google_service_networking_connection" "private_vpc_connection" {
|
||||||
|
|
||||||
resource "google_sql_database_instance" "instance" {
|
resource "google_sql_database_instance" "instance" {
|
||||||
depends_on = ["google_service_networking_connection.private_vpc_connection"]
|
depends_on = ["google_service_networking_connection.private_vpc_connection"]
|
||||||
name = "private_instance"
|
name = "private-instance"
|
||||||
region = "us-central1"
|
region = "us-central1"
|
||||||
settings {
|
settings {
|
||||||
tier = "db-f1-micro"
|
tier = "db-f1-micro"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user