Out of curiosity, what would be an example of the reason to use them?
My assumption is a business using an organization.
Out of curiosity, what would be an example of the reason to use them?
My assumption is a business using an organization.
The other common advice here is all bang on but there are some key practices missing. You have a bus factor of 1 on root access right now, which will make it very difficult for others to get in if something happens to you or your devices.
Set a very secure password on the root account, then put it in some kind of secure password store. You don’t want to be the only one with access to root credentials. Likewise, your root account email should be a mailing list (with closed access, of course) so people who need the root account can use it, and can see important activity done as root.
Don’t tie root MFA to your own phone. Store the OTP seed in a secure store so other people who need access to root can generate MFA codes.
Getting off in the weeds somewhat, you’ve founded a company. Do not use IAM users for any reason. Set up SSO with directory integration, and role-based access to AWS.
Finally, hire someone who understands all this ASAP.
Yep. And that’s good advice. https://docs.aws.amazon.com/organizations/latest/userguide/orgs_introduction.html
I also like to use an alias or otherwise generic e-mail address for our root account. This way it can easily change hands within the company.
A good way to look at it is “Any time you use the root account, you should be asking yourself WHY you can’t do it with something else”
I’m down to an annual “Do the root credentials still work” test.
disperse access to ONE root user account amongst several people
AWS now supports multiple MFA devices for root access. I strongly recommend a physical device (FIDO2 token) even if it is only used for this one use case. Everyone who needs access should share physical access with the token or if you must, use their own.
Nobody should be using the root account for any day-to-day tasks.
I wonder as well… What’s the usecase for API keys for the root user?
IMHO, create an account, set password and mfa for root user, create an admin IAM user and then never use the root user again (except for some quite rare things, like changing invoicing).
I really hate that idea. I already carry too much crap in my purse, so I don’t want to be forced to carry something else. Also, that means you always have to carry it with you wherever you are. I carried a Bank of America token for about five years that was required for larger transfers so whenever, for example, it got water damaged from me either walking to work in the rain or standing waiting on a bus, then we couldn’t do our payroll transfer. Once I didn’t have it with me when I went swimming. I almost got fired for that.
No, don’t make me carry yet more crap.
On the “More than one root user” thing, here’s what I recommend:
That way, if you ever need access to the root user, you can do a password reset but everyone who is a member of the group will get the email and can determine if access is legitimate.
I don’t know if you dropped a /s or are really concerned about carrying a FIDO2 token.
If you need to access your AWS root account while out on the town, you probably have bigger fish to fry.
I’m currently dealing with trying to use my laptop from a McDonald’s because I need to update Route53 because of a small fire at our data center so they had to move equipment to a different provider in the same building that has a different IP addr. Three guys maintained DNS for us, and they’re not available today so I need root. One guy is on a 30 day Amazon cruise, the other died Thursday, and the third quit Friday morning after learning the one person with a clue in his department was dead so his job just got much harder. The quitter isn’t answering his phone today. When I left home, I would have had no idea I would need the token and probably wouldn’t have brought it with me since I’m swimming and the lockers here get broken into often. I ride the bus and have to spend time in sketchy places so the idea of carrying yet another valuable thing is annoying.
I just want to be able to login like I have with Amazon since I first created this account in the fall of 2006. Why is Amazon now suddenly being so hateful about allowing logins?
You can now set multiple MFAs on the root user. Where I work, we all have FIDO2 security keys so each of us that have access to the passwords have enrolled our devices, plus one “break-glass” device kept in a safe. Note that with IAM, it’s FIDO2, whereas with IAM Identity Center/SSO, it’s U2F. Bizarre distinction (FIDO2 requires PIN entry to perform 2FA, U2F doesn’t).
You want them to make it harder to use the account you typically only need in an emergency? Last time I needed root was because two coworkers were both hurt seriously on a car crash when returning from lunch. We would have been screwed if Amazon forced us to retrieve a token from a burned car.
Whoever has access to the root user effectively owns the account.
You can create additional users with root-like permissions by giving them the AdministrativeAccess policy to that user. But there are a few operations, like closing the account, that remain root user only. None of these are things that should be done day-to-day.
Best practice is to only log in as the root user to do these special functions, and otherwise use a user with AdministrativeAccess or less for normal operations. The root user should be protected with two-factor authentication, and not have API keys generated.
Lots of excitement here… we’re all just trying to help you put the right safeguards in place. I’m not sure what you’re doing in that account, but to be honest you should consider creating another account, creating an organization (from AWS organizations) in that new account, and adding your existing account to that organization. That protects what you’re doing in your existing account, and you can set up a group email to manage the organization if needed. Then set up identity center so you can create basic access to the accounts in the org without using any root users.
Absolutely. You should have someone on-site with the 2fa attached to a device and then put the 2fa generator code in a safe spot (like a bank deposit box that only company officers have access to). With that code, you can put the 2fa code on any device you need. There’s better ways, that’s just how I do it.
There is only one root user. You can create users in IAM which have all the same rights as root except for the one right only root has - delete the account and that one right is why you never, ever, ever use root.
With root you set a password, you set MFA, you grab a copy of the QR code and you lock those away.
As root you then create an admin account that has full rights. You log in with that account set up MFA then use that account for setting up the rest of the account.
If you need help with this, please message me. I can have your AWS account set up with the proper authentication model for all your uses
Control Tower. Tell your friends.
That’s not something you need your root user to do… that’s what’s being said above. Your root user account will require a physical MFA device. Lock it up in a locker with your security team. All other users (like a user who can do something like update Route53) can use a different second factor~ whatever your IDP supports.
You need to hire a cloud engineer