DEV Community

Discussion on: Terraform AWS - Dynamic Subnets

Collapse
 
alfredocambera profile image
Alfredo Cambera

Thanks for sharing this tutorial. It saved my day. It would be interesting to see this same solution but using cidrsubnets. What I don't like about that function is that it requires positional parameters. It would be better if it could receive a list to provide the info of each subnet.

Collapse
 
unfor19 profile image
Meir Gabay

Hey Alfredo, to tell you the truth, I'm still using this method. The function cidrsubnets is not my cup of tea 🤷🏻‍♂️

Collapse
 
alfredocambera profile image
Alfredo Cambera

What I don't like about cidrsubnets is that I have to pass each parameter separated. It would be great if it could receive a list.

Thread Thread
 
unfor19 profile image
Meir Gabay

And this is why I cooked this solution :)