Coursera - AWS Cloud Technical Essentials - Creating IAM Groups Best Practice

0

Hello I am studying AWS Cloud Technical Essentials in Coursera, The instructor mentioned the below speech

"Another best practice to follow is that we recommend when you create your AWS account you first set up MFA for the root user, then create an IAM user with administrator permissions, log out of the root user and then log in with the new IAM user that you just created. From there, you can use this user to create the IAM groups, users, and policies for the rest of the people using this AWS account."

Just I need to know the logic behind this, why do I use an administrator account for creating IAM groups, instead of using my root user

2개 답변
1
수락된 답변

There are several reasons why it is a best practice to create an IAM user with administrator permissions and use this user to create IAM groups, users, and policies for the rest of the people using the AWS account, rather than using the root user:

Security: The root user is the most privileged user in an AWS account and has access to all resources and services. By creating an IAM user with administrator permissions, you can ensure that the root user is not used for day-to-day management tasks and that access to the root user is limited to a small number of trusted individuals.

Auditing: By using an IAM user with administrator permissions to create IAM groups, users, and policies, you can track who is making changes to your AWS environment and when those changes were made. This can be useful for compliance and security purposes.

Least Privilege: It's a best practice to only provide access to the resources and permissions that are necessary to perform a specific task. By creating an IAM user with administrator permissions, you can ensure that this user only has the permissions required to create IAM groups, users, and policies, rather than having access to all resources and services.

Cost control: By limiting access to the root user, you can also control costs by ensuring that the root user's credentials are not used to create unnecessary resources or incur unexpected charges.

Separation of duties: By creating an IAM user with administrator permissions, you can separate the responsibilities of managing the AWS environment from the responsibilities of managing the root user. This can help to prevent accidental or malicious changes to the AWS environment.

In summary, using an IAM user with administrator permissions for creating IAM groups, users and policies instead of using the root user is a best practice for security, auditing, cost control, least privilege and separation of duties.

profile picture
답변함 일 년 전
1

Root user is only one in your account. Even if your account is managed by more than one person, you will share one root user. In that case, You cannot identify who operated if you use root user. You can identify who operated if you create administrator user per person with IAM user. So, it is recommended that the root user be used only for minimal operations. I think no problem in creating a group for administrators with root user firstly.

imiky
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인