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

Commit

Permalink
Generate AWS-scoped IAM policy attachments too
Browse files Browse the repository at this point in the history
  • Loading branch information
raylu-stripe committed Aug 8, 2016
1 parent 8072046 commit c813a72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/terraforming/resource/iam_policy_attachment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def entities_for_policy(policy)
end

def iam_policies
@client.list_policies(scope: "Local").map(&:policies).flatten
@client.list_policies(scope: "All", only_attached: true).map(&:policies).flatten
end

def iam_policy_attachments
Expand Down

0 comments on commit c813a72

Please sign in to comment.