Add in secondary range, but not working due to wrong network.
This commit is contained in:
parent
b92396d321
commit
2cf9f93de6
@ -34,10 +34,16 @@ resource "google_compute_network" "private_network" {
|
||||
}
|
||||
|
||||
resource "google_compute_subnetwork" "subnet" {
|
||||
project = google_compute_network.private_network.project
|
||||
name = "private-subnetwork"
|
||||
ip_cidr_range = "10.100.0.0/16"
|
||||
region = var.region
|
||||
network = google_compute_network.private_network.id
|
||||
|
||||
secondary_ip_range {
|
||||
range_name = "private-subnetwork-secondary"
|
||||
ip_cidr_range = "192.168.10.0/24"
|
||||
}
|
||||
}
|
||||
|
||||
resource "google_compute_global_address" "private_ip_address" {
|
||||
|
Loading…
x
Reference in New Issue
Block a user