Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Role alias system #52

Closed
copumpkin opened this issue May 1, 2015 · 3 comments
Closed

Role alias system #52

copumpkin opened this issue May 1, 2015 · 3 comments

Comments

@copumpkin
Copy link
Contributor

Instead of having to remember a bunch of ugly ARNs, it would be nice if the hologram CLI tool looked at some sort of config file (could default to ~/.hologram perhaps) that listed human-readable alias mappings for full ARNs. For example:

[Aliases]
prod-zomg = arn:aws:iam::123456789012:role/ZOMG
whoa-wtf = arn:aws:iam::09876543210:role/muahahhaa

Then hologram use prod-zomg would do the obvious thing.

@gaylatea
Copy link
Contributor

gaylatea commented May 1, 2015

A JSON format would probably be better for this, considering that that's the format we use elsewhere. :)

Otherwise, great idea and I'd love to see support for this. 👍

@copumpkin
Copy link
Contributor Author

Extending this a step further, I'm thinking we could have separate aliases for account numbers and roles: then instead of putting hyphens in my role aliases, I can make an account alias for prod and type hologram use prod rolefoo. Does that still make sense? It seems like it would allow for more structure across accounts, rather than expecting people to make a cartesian product of role/account pairs (prod-foo, prod-bar, dev-foo, dev-bar, etc.)

@walterking walterking mentioned this issue Aug 18, 2016
@walterking
Copy link
Contributor

walterking commented Nov 8, 2016

Master now has account aliases. With {prod: "arn:aws:iam::123456789012"}, hologram use prod/foo will give you foo role on prod account

https://github.com/AdRoll/hologram#account-aliases

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

No branches or pull requests

3 participants