update google_sql_database_instance private IP example docs (#2763)

Updated sql documentation for invalid names.
This commit is contained in:
sam hagan 2019-01-02 10:27:48 -08:00 committed by Riley Karson
parent e9cb61859b
commit 00f87a3da2

View File

@ -113,11 +113,11 @@ resource "google_sql_database_instance" "postgres" {
```hcl
resource "google_compute_network" "private_network" {
name = "private_network"
name = "private-network"
}
resource "google_compute_global_address" "private_ip_address" {
name = "private_ip_address"
name = "private-ip-address"
purpose = "VPC_PEERING"
address_type = "INTERNAL"
prefix_length = 16
@ -132,7 +132,7 @@ resource "google_service_networking_connection" "private_vpc_connection" {
resource "google_sql_database_instance" "instance" {
depends_on = ["google_service_networking_connection.private_vpc_connection"]
name = "private_instance"
name = "private-instance"
region = "us-central1"
settings {
tier = "db-f1-micro"