Description:
With the creation of an AWS account, a root user is created that cannot be disabled or deleted. That user has unrestricted access to and control over all resources in the AWS account. It is highly recommended that the use of this account be avoided for everyday tasks.
Rationale:
The root user has unrestricted access to and control over all account resources. Use of it is inconsistent with the principles of least privilege and separation of duties, and can lead to unnecessary harm due to error or account compromise.
If you find that the root user account is being used for daily activity to include administrative tasks that do not require the root user:
**Remember, anyone who has root user credentials for your AWS account has unrestricted access to and control of all the resources in your account, including billing information.
From Console:
From Command Line:
Run the following CLI commands to provide a credential report for determining the last time the root user was used:
aws iam generate-credential-report
aws iam get-credential-report --query 'Content' --output text | base64 -d | cut -d, -f1,5,11,16 | grep -B1 ''
Review 'password_last_used', 'access_key_1_last_used_date', 'access_key_2_last_used_date' to determine when the root user was last used.
Note: There are a few conditions under which the use of the root user account is required. Please see the reference links for all of the tasks that require use of the root user.