mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-10-01 16:21:06 +00:00
Add note in docs for private IP SQL instance set-up (#3273)
Signed-off-by: Modular Magician <magic-modules@google.com>
This commit is contained in:
parent
9367f76430
commit
f0de15eadb
@ -109,7 +109,7 @@ resource "google_sql_database_instance" "postgres" {
|
||||
```
|
||||
|
||||
### Private IP Instance
|
||||
|
||||
~> **NOTE**: For private IP instance setup, note that the `google_sql_database_instance` does not actually interpolate values from `google_service_networking_connection`. You must explicitly add a `depends_on`reference as shown below.
|
||||
|
||||
```hcl
|
||||
resource "google_compute_network" "private_network" {
|
||||
@ -131,9 +131,13 @@ 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"
|
||||
|
||||
depends_on = [
|
||||
"google_service_networking_connection.private_vpc_connection"
|
||||
]
|
||||
|
||||
settings {
|
||||
tier = "db-f1-micro"
|
||||
ip_configuration {
|
||||
|
Loading…
Reference in New Issue
Block a user