Creating an admin user in AWS from the root account involves several steps. The root account has unrestricted access, so it's a best practice to create an IAM user with administrative privileges and use that account for everyday tasks, reserving the root account for account and service management.
Here’s a step-by-step guide to creating an admin user:
Step 1: Sign in to the AWS Management Console as the Root User
- Go to the AWS Management Console.
- Sign in with your root account credentials (email and password).
Step 2: Navigate to the IAM Service
- In the AWS Management Console, on the top right, click on your account name.
- In the dropdown menu, select “Security credentials.”
- In the left sidebar, click on “Users” under the “Access management” section.
Step 3: Create a New User
- Click the "Add user" button.
- Enter a user name for the new user. For example, "AdminUser."
- Select the checkbox for “AWS Management Console access” to enable console access for the user.
- Choose the “Custom password” option and enter a strong password. Optionally, select “Require password reset” for the user to reset their password upon first sign-in.
Step 4: Set Permissions for the New User
- On the “Set permissions” page, select “Attach existing policies directly.”
- In the search box, type “AdministratorAccess.”
- Check the box next to “AdministratorAccess” to assign full administrative permissions to the new user.
- Click the "Next: Tags" button.
Step 5: Add Tags (Optional)
- You can add tags to organize and manage your AWS resources. For example, you can add a tag with the key "Department" and the value "IT."
- Click the "Next: Review" button.
Step 6: Review and Create the User
- Review the details of the new user to ensure everything is correct.
- Click the "Create user" button.
Step 7: Provide Sign-In Information to the New User
- After the user is created, you will see a confirmation page with a link to the AWS Management Console for the new user, along with the username and password.
- Copy or download the credentials for the new user and share them securely with the user.
Step 8: Sign in as the New Admin User
- Use the sign-in URL provided (typically in the format
https://Your-AWS-Account-ID.signin.aws.amazon.com/console
). - Enter the new user credentials to sign in as the AdminUser.
- If you required a password reset, the user will be prompted to set a new password.
Step 9: Enable Multi-Factor Authentication (MFA) for the New Admin User (Optional but Recommended)
- While signed in as the new AdminUser, navigate to the IAM dashboard.
- In the left sidebar, select “Users.”
- Click on the new admin user’s name to open their details.
- Select the “Security credentials” tab.
- In the “Multi-factor authentication (MFA)” section, click “Assign MFA device.”
- Follow the steps to enable MFA using a virtual MFA device (e.g., an authenticator app like Google Authenticator or Authy).
Summary
By following these steps, you have created a new IAM user with administrative privileges. This practice enhances security by minimizing the use of the root account for daily operations. Always enable MFA for additional security.
No comments:
Post a Comment