<% iam_roles.each do |role| -%> resource "aws_iam_role" "<%= module_name_of(role) %>" { name = "<%= role.role_name %>" description = "<%= role.description %>" path = "<%= role.path %>" tags = { <% iam_tags_of(role).each do |tag| -%> "<%= tag.key%>" = "<%= tag.value %>" <% end -%> } assume_role_policy = < POLICY } <% end -%>