Syntax Features
Simpler For-Loops
for i in range (1, 3) {
network "subnet-{i}" {
resource_type = "aws_subnet"
cidr_block = "10.10.{i}.0/24"
--Equivalent to---
network "subnet-1" {
resource_type = "aws_subnet"
cidr_block = "10.10.1.0/24"
}
network "subnet-2" {
resource_type = "aws_subnet"
cidr_block = "10.10.2.0/24"
}
network "subnet-3" {
resource_type = "aws_subnet"
cidr_block = "10.10.3.0/24"
}Custom Types
Calc Fields
File Path Specification
Last updated