Add in secondary range, but not working due to wrong network.

master
Tom Alexander 3 years ago
parent b92396d321
commit 2cf9f93de6
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

@ -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…
Cancel
Save