lib/terraforming/template/tf/iam_role.erb in terraforming-0.12.0 vs lib/terraforming/template/tf/iam_role.erb in terraforming-0.13.0
- old
+ new
@@ -1,6 +1,6 @@
<% iam_roles.each do |role| -%>
-resource "aws_iam_role" "<%= role.role_name %>" {
+resource "aws_iam_role" "<%= module_name_of(role) %>" {
name = "<%= role.role_name %>"
path = "<%= role.path %>"
assume_role_policy = <<POLICY
<%= prettify_policy(role.assume_role_policy_document, unescape: true) %>
POLICY