Generate repeated nested blocks from input data.
Section: Dynamic Blocks and Data Sources
Dynamic block
hcl
hcl
dynamic "ingress" {
for_each = var.ingress_rules
content {
from_port = ingress.value.from_port
to_port = ingress.value.to_port
protocol = ingress.value.protocol
cidr_blocks = ingress.value.cidr_blocks
}
}Explanation
Generate repeated nested blocks from input data.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Dynamic Blocks and Data Sources