Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

how to loop a nested for _each loop.

I have 3 for_each nested loops for rules. How can I have the loop set.

resources:
  SECURITY_GROUP:
    type: OS::Neutron::SecurityGroup
    properties:
      name: { get_param: GNAME }
         repeat:
           for_each:
             <%list1%>: {get_param: list1s }
           template:
             repeat:
               for_each:
                 <%list2%>: {get_param: list2s }
               template:
                 rules:
                   port: <%list1%>
                   remote_ip_prefix: <%list2%>

This is giving an Error. If I keept rules before the first repeat it gives error that it is not a map