mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-07-09 03:28:29 +00:00
Add google-beta to SQL private docs (#3368)
<!-- This change is generated by MagicModules. --> Original Author: @rileykarson
This commit is contained in:
parent
d544f6434d
commit
28be0e968d
|
@ -113,10 +113,14 @@ resource "google_sql_database_instance" "postgres" {
|
||||||
|
|
||||||
```hcl
|
```hcl
|
||||||
resource "google_compute_network" "private_network" {
|
resource "google_compute_network" "private_network" {
|
||||||
|
provider = "google-beta"
|
||||||
|
|
||||||
name = "private-network"
|
name = "private-network"
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "google_compute_global_address" "private_ip_address" {
|
resource "google_compute_global_address" "private_ip_address" {
|
||||||
|
provider = "google-beta"
|
||||||
|
|
||||||
name = "private-ip-address"
|
name = "private-ip-address"
|
||||||
purpose = "VPC_PEERING"
|
purpose = "VPC_PEERING"
|
||||||
address_type = "INTERNAL"
|
address_type = "INTERNAL"
|
||||||
|
@ -125,12 +129,16 @@ resource "google_compute_global_address" "private_ip_address" {
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "google_service_networking_connection" "private_vpc_connection" {
|
resource "google_service_networking_connection" "private_vpc_connection" {
|
||||||
|
provider = "google-beta"
|
||||||
|
|
||||||
network = "${google_compute_network.private_network.self_link}"
|
network = "${google_compute_network.private_network.self_link}"
|
||||||
service = "servicenetworking.googleapis.com"
|
service = "servicenetworking.googleapis.com"
|
||||||
reserved_peering_ranges = ["${google_compute_global_address.private_ip_address.name}"]
|
reserved_peering_ranges = ["${google_compute_global_address.private_ip_address.name}"]
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "google_sql_database_instance" "instance" {
|
resource "google_sql_database_instance" "instance" {
|
||||||
|
provider = "google-beta"
|
||||||
|
|
||||||
name = "private-instance"
|
name = "private-instance"
|
||||||
region = "us-central1"
|
region = "us-central1"
|
||||||
|
|
||||||
|
@ -146,6 +154,11 @@ resource "google_sql_database_instance" "instance" {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
provider "google-beta"{
|
||||||
|
region = "us-central1"
|
||||||
|
zone = "us-central1-a"
|
||||||
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
## Argument Reference
|
## Argument Reference
|
||||||
|
|
Loading…
Reference in New Issue
Block a user