/gcp-terraform-network

Build network using variable, functions - length, formatlist with output subnet and cidr.

Primary LanguageHCL

gcp-terraform-network

Build network using variable, functions - length, formatlist with output subnet and cidr.

main.tf

Network block - to create VPC.

subnet block - to create 3 subnet using count.index and length function.

output block - get output of subnet " name = cidr ".