lib/terraforming/template/tf/network_acl.erb in terraforming-0.13.2 vs lib/terraforming/template/tf/network_acl.erb in terraforming-0.14.0
- old
+ new
@@ -9,10 +9,14 @@
to_port = <%= to_port_of(ingress) %>
rule_no = <%= ingress.rule_number %>
action = "<%= ingress.rule_action %>"
protocol = "<%= ingress.protocol %>"
cidr_block = "<%= ingress.cidr_block %>"
+<%- if ingress.icmp_type_code -%>
+ icmp_code = "<%= ingress.icmp_type_code.code %>"
+ icmp_type = "<%= ingress.icmp_type_code.type %>"
+<%- end -%>
}
<% end -%>
<% egresses_of(network_acl).each do |egress| -%>
egress {
@@ -20,9 +24,13 @@
to_port = <%= to_port_of(egress) %>
rule_no = <%= egress.rule_number %>
action = "<%= egress.rule_action %>"
protocol = "<%= egress.protocol %>"
cidr_block = "<%= egress.cidr_block %>"
+<%- if egress.icmp_type_code -%>
+ icmp_code = "<%= egress.icmp_type_code.code %>"
+ icmp_type = "<%= egress.icmp_type_code.type %>"
+<%- end -%>
}
<% end -%>
tags {
<% network_acl.tags.each do |tag| -%>