Sha256: d43772999c194d2402291ab788e7498783493400f9168fbab54fc8ebe3c2185b

Contents?: true

Size: 486 Bytes

Versions: 3

Compression:

Stored size: 486 Bytes

Contents

<% 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
<%= prettify_policy(role.assume_role_policy_document, unescape: true) %>
POLICY
}

<% end -%>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
practice_terraforming-0.1.11 lib/practice_terraforming/template/tf/iam_role.erb
practice_terraforming-0.1.10 lib/practice_terraforming/template/tf/iam_role.erb
practice_terraforming-0.1.9 lib/practice_terraforming/template/tf/iam_role.erb