是否可以使用相同的资源创建多个网络并遍历名称列表,而不是创建一长串资源?如下例所示:
parameters:
netName:
type: comma_delimited_list
label: netName
default: "calea,diam,ss7,proxy"
description: Network name
resources:
repeat:
template:
networks:
type: OS::Neutron::Net
properties:
name:
list_join: ['_', [ 'int', <%name%>, 'net']]
for_each:
<%name%>: { get_param: netName }