I would want my CFT to take the list of subnets from the user as parameter and use that in create ALB subnets. How do I loop over subnets while creating the resource for ALB?
Something like:
ApplicationLoadBalancer:
Type: AWS::ElasticLoadBalancingV2::LoadBalancer
Properties:
Scheme: internet-facing # or internal
Subnets:
<% for _, subnet in subnets %>
- Ref: <%subnet%>
<% endfor %>
SecurityGroups:
- Ref: ELBSecurityGroup