I’m starting to setup an organization, and I was wondering what do you do with users? Do you create a access account which everyone logs into and then assumeroles in the different accounts?
What do you guys do, and why?
Thanks
I’m starting to setup an organization, and I was wondering what do you do with users? Do you create a access account which everyone logs into and then assumeroles in the different accounts?
What do you guys do, and why?
Thanks
SSO.
https://aws.amazon.com/iam/identity-center/
Use SSO. It’s super easy to set up and is the only sane way to manage access.
SSO, or IAM Identity Centre as it’s now called, which can also use an external IdP like AzureAD or Okta.
In SSO. If no SSO: in a separate IAM account.
I guess the other question to ask yourself is how you want to manage users. There is no real problem with creating IAM users but then you have to tie that into leavers/joiners as well as it’s another thing for people to remember.
The better way, in that situation, is to use existing Identity Providers (Active Directory for example) and use that to provide you with authentication (someone is who they say they are) and then just give the authenticated user a role to use in AWS (via SSO).
If you don’t have an identity provider then SSO can provide you with one. In this second case that could also be used for other apps should you wish which is a reverse of the original position.
Users only long enough to get SSO set up.
Identity center looks awesome, it’s new since last I worked with aws. What about m2m accounts, do you put them in each account as normal iam users?
No don’t create users, they have access to console and access keys (security risk).
Create IAM roles and assign them to your EC2s etc to access services. You can use IAM roles for 99% of M2M.
I would always do the same, but in this case we have some services that does not run in aws ![]()
Maybe check out “IAM everywhere”
That looks awesome actually. I will definitely use that
Either that, or check out IAM OIDC Providers. If you have your own OIDC provider elsewhere you can use OIDC to assume Roles safely by trusting each party. Sort of similar to how Vault IAM roles work ![]()
The problem as well with IAM users is persistent access credentials, which can be leaked. SSO uses short lived access tokens generated for one session only which mitigates that.
Agreed. But you are only moving the problem to another IDP. Long lived credentials in AD would also be an issue.
Absolutely agree - although the identity theft prevention and security there allows you to prevent or mitigate a lot. Definitely harder to abuse stolen 365 credentials than stolen IAM keys!
I generally just avoid IAM Users because it’s such a headache; even on a small scale I use SSO as I just use the built in identity store.
OMFG
Sso. Please never create shared credentials ![]()
As you note, IAM users are sometimes unavoidable. However, you can easily chose to disable console access for an IAM user during user creation.
Yeah it’s just a risk of erroneous access keys being generated And leaked