<% hosted_zones.each do |hosted_zone| -%> resource "aws_route53_zone" "<%= module_name_of(hosted_zone) %>" { name = "<%= name_of(hosted_zone) %>" tags { <% tags_of(hosted_zone).each do |tag| -%> <%= tag.key %> = "<%= tag.value %>" <% end -%> } } <% end -%>