Like the title says I am a non-technical founder. Currently I am the sole root user for our AWS. I have noticed that a loooottt of people online say two things:
-Have more than one root user
-Dont user root user for anything unless absolutely necessary
I’m confused about both of these points…
Basically my questions are these: why? and what is best practices?
What problems occur when you violate these two points? Am I misunderstanding what root user is? I assumed it was basically just the big-admin on the account…missing something? Can you help?
You can only have one root user. Imagine it like having one master password that will forever have access to everything. Also, that “one” root user account is the only way to permanently close your AWS account. With that being said, your business and AWS resources will grow. You do not want to compromise this with someone finding your root user password, or you making accidental changes.
Enable multi-authentication, and create a user account. Give your user account the access you need, and use that account daily.
That root user has the literal keys to the kingdom including being able to delete the account entirely or change billing / contact other essential data.
So the best practices are:
Lock down root user with MFA
Never ever create API access keys for the root user
Never ever use the root user for any “real” work other than work that requires root access such as setting up payment methods or changing contact info
All real work in AWS should be done:
Via AWS SSO role based access controls tied back to an MFA authenticated identity
IAM users if you have to or you have service account automation requirements
You don’t want to use root for management because if your credentials get hacked (and you didn’t set up MFA) an attacker could do anything to your account, including removing IAM users, deleting your account, etc.
Root user is typically used for billing and account set up and the initial set up of a IAM user that has management permissions (like to add other users/groups/policies in IAM, as well as broader access to other services.)
Root users can do too much so you need to create specialised IAM (either human or machine) with granular permissions for good security practice, for example I want to build a CI pipeline so I create a ci user with ECR permissions for building image.
In the case I accidentally leaked the access key and access secret, the damage isn’t too widespread.
Many reditors have provided the answer. I just want to add that, OP please get a course on AWS cloud (minimally the CLF, best is SAA) if you plan to operate on cloud and yourself being the cloud admin.
As a non-tech founder maybe a banking analogy would be better for you.
Pretend we are talking about your company checking account. Who should be able to access the account? Should everyone be able to sign checks? What about withdrawing or transfer money out of the account? Probably the answer is an emphatic “No”.
So you put blocks in place. You make employee debit cards that people can charge to, but which have limits. Just because someone has an employee debit card does not mean you want to give them access to withdraw all the money from the account. You let the accounting department issue checks, but you have only one (or a few) trusted person who can sign them (and you never let employees sign on their behalf).
AWS account access is a direct corollary. Your root account is your “bank account owner”. If you give it to other people you are essentially saying “hey, pretend to be me. You are my proxy, you have the full power to do anything you want with my bank account”. In both cases you rarely rarely ever want to do that. Instead you delegate access and give people only the amount of control over the account as their needs require.
Okay awesome! Thank you all…I realize that I misinterpreted “disperse access to ONE root user account amongst several people (not necessary here…were so small)” as “have more than one root user account (impossible)”.
Only have and use the smallest amount of access necessary to complete a particular task.
Having Root access means you have access to absolutely everything in the account - including the power to delete the account itself!
Nobody needs that kind of access day-to-day so it makes sense to create accounts with less access to do your actual work. Only log into the Root account when you absolutely need to.
I’m happy for you, but that doesn’t mean that there aren’t other ways to do things. It also doesn’t mean there aren’t legitimate business and technical reasons to do things in other ways.
each account has only one root user. It has god rights, so it should be well protected with a strong password and MFA. it should rarely be used. you should also have another IAM user account with broad admin rights, also well protected. in addition to that, you should have other IAM user accounts that have least privileged roles suitable for the tasks that user does, but no more. those are your daily drivers.