2 min read
Using the terraform graph we can theoretically get a visual representation of either the plan or the current configuration
04/07/2022
Read more...2 min read
To be able to learn about new terraform functions we can use terraform output to learn how a variable is modified. But this can take a while if we have a lot of resources to compute.
Instead, if we know the values we want to use beforehand it might be easier and quicker to use terraform console
22/04/2022
Read more...3 min read
If we are using terraform for creating subnets on AWS we are going to need to split the VPC's network range into several pieces, one for each AZ. We can let terraform handle all the details by using the cidrsubnet() function
20/04/2022
Read more...2 min read
When using HCL, if we want to access an element within a map we can use the usual index access present on many other languages. By using the lookup function we can do exactly that but providing a default value in case there's no such key.
18/03/2022
Read more...2 min read
Terraform's coalesce() function can com handy when we have optional arguments coming from several sources and we want to pick one using some preference.
10/03/2022
Read more...