<% db_subnet_groups.each do |subnet_group| -%> resource "aws_db_subnet_group" "<%= module_name_of(subnet_group) %>" { name = "<%= subnet_group.db_subnet_group_name %>" description = "<%= subnet_group.db_subnet_group_description %>" subnet_ids = <%= subnet_group.subnets.map { |subnet| subnet.subnet_identifier }.inspect %> } <% end -%>