Process Flow - Dynamic blocks in security groups
Start Terraform config
Define security group resource
Enter dynamic block for rules
Loop over input list
Create each rule block
Apply config to cloud
Security group with rules created
Terraform reads the security group resource, loops over the input list inside the dynamic block, creates each rule block, and applies the configuration to create the security group with all rules.