Skip to content
This repository has been archived by the owner on Sep 9, 2022. It is now read-only.

iamp-nil-check #415

Merged
merged 2 commits into from
Apr 21, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
iamp-nil-check
  • Loading branch information
savankumargudaas committed Jul 13, 2018
commit e3a2495b4e36466054df1abc4d342835e1347ac1
4 changes: 3 additions & 1 deletion lib/terraforming/template/tf/iam_instance_profile.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
resource "aws_iam_instance_profile" "<%= module_name_of(profile) %>" {
name = "<%= profile.instance_profile_name %>"
path = "<%= profile.path %>"
role = "<%= profile.roles[0].role_name %>"
<%- if profile.roles[0] != nil -%>
role = "<%= profile.roles[0].role_name %>"
<%- end -%>
}

<% end -%>