Fun with Subnets in Terraform (with AWS)
Here’s a quick example of how you can use Terraform’s cidrsubnet function to streamline your use of IP Subnets and calculate a number of different subnets from a single CIDR range (or supernet). https://developer.hashicorp.com/terraform/language/functions/cidrsubnet In this particular example I have a /22 network, 10.192.36.0/22 which I want to split into two /24 subnets, one for … Read more