<% iam_groups.each do |group| -%> resource "aws_iam_group" "<%= group.group_name %>" { name = "<%= group.group_name %>" path = "<%= group.path %>" } <% end -%>