ArticCon 2022 (continued)
HCL and usage
Here is an example block of HCL1 taken right from the terraform registry documentation
# main.tf
provider "google" {
project = "my-project-id"
region = "us-central1"
}
resource "google_compute_subnetwork" "network-with-private-secondary-ip-ranges" {
name = "test-subnetwork"
ip_cidr_range = "10.2.0.0/16"
region = "us-central1"
network = google_compute_network.custom-test.id
secondary_ip_range {
range_name = "tf-test-secondary-range-update1"
ip_cidr_range = "192.168.10.0/24"
}
}