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 ".
Build network using variable, functions - length, formatlist with output subnet and cidr.
HCL