Skip to content
This repository has been archived by the owner on Nov 8, 2021. It is now read-only.

Merge of my AssumeRole branch, and some other forks #24

Merged
merged 23 commits into from
Apr 4, 2017
Merged

Merge of my AssumeRole branch, and some other forks #24

merged 23 commits into from
Apr 4, 2017

Conversation

mvanbaak
Copy link
Contributor

I took the ideas of some of the other forks, and folded it all in one version.

  • Allow specifying an ASSUMEROLE arn to fetch users from another AWS account
  • Allow specifying which IAM groups you want to import
  • Allow specifying a list of local groups to add the imported users to
  • Mark all imported users with a special marker group so in the next run we can delete users no longer in the synced IAM groups (or if the IAM user has been deleted)
  • Updated install.sh to take these things into account

Thanks to usertesting for most of the work about specifying the IAM groups to import and their work on deleting obsolete users.

While trying to implement this feature looking at the many forks,
I decided to mix the various implementations into something for
ourselves.

Split up the script in functions
Created some meaningfull global variables
@magnusewe
Copy link

Great work! Regarding 0d8260f, why would you not allow hyphens in usernames? For example there is the default ec2-user in AWS.

@mvanbaak
Copy link
Contributor Author

You are right. It's something we have internally as 'rule' but it should be removed from this opensource version. Thanks for spotting it. Will undo that commit from my branch.

@michaelwittig michaelwittig mentioned this pull request Mar 28, 2017
Copy link
Contributor

@shinenelson shinenelson left a comment

Choose a reason for hiding this comment

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

Great work @mvanbaak. Your code quality is amazing! Keep up the good work!

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.

None yet

4 participants