<% iam_role_policies.each do |policy| -%> resource "aws_iam_role_policy" "<%= unique_name(policy) %>" { name = "<%= policy.policy_name %>" role = "<%= policy.role_name %>" policy = < POLICY } <% end -%>