<% iam_roles.each do |role| -%> resource "aws_iam_role" "<%= role.role_name %>" { name = "<%= role.role_name %>" path = "<%= role.path %>" assume_role_policy = < POLICY } <% end -%>