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

AWS-scoped IAM policy attachments #251

Merged
merged 1 commit into from
Aug 8, 2016
Merged

Conversation

raylu
Copy link
Contributor

@raylu raylu commented Jul 29, 2016

This branch is based on stripe/paginate_group_members so includes the changes in #248.

We generate only Local-scoped policies in iamp, which is fine. We need to generate both Local- and AWS-scoped attachments though, so that users/groups/roles with AWS-scoped policies (such as arn:aws:iam::aws:policy/AmazonS3FullAccess) are generated.

@@ -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
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[rubocop]

  • Line is too long. [88/80] :ref

@coveralls
Copy link

coveralls commented Jul 29, 2016

Coverage Status

Coverage remained the same at 97.347% when pulling db78169 on stripe:iampa_aws into 1596db2 on dtan4:master.

@dtan4
Copy link
Owner

dtan4 commented Aug 7, 2016

Sorry for late review.

Code and behavior look good, but could you rebase to current master and remove changes of iam_group_membership?

@coveralls
Copy link

coveralls commented Aug 8, 2016

Coverage Status

Coverage remained the same at 97.352% when pulling c813a72 on stripe:iampa_aws into 8072046 on dtan4:master.

@dtan4
Copy link
Owner

dtan4 commented Aug 8, 2016

LGTM 👍 Thanks ❗

@dtan4 dtan4 merged commit 72c96ee into dtan4:master Aug 8, 2016
@raylu
Copy link
Contributor Author

raylu commented Aug 9, 2016

Excellent! Will you let me know when you cut a new gem version?

@dtan4
Copy link
Owner

dtan4 commented Aug 23, 2016

@raylu Sorry for late! Terraforming v0.10.0 w/ this patch was released :shipit:

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants