Skip to content

User Creation issue in IAM

0

Hi, While creating a user I am not seeing the Radio button which says "Are you providing console access to a person?" Hence I am not getting the options User Type

  1. (Radio Button): Specify a user in Identity Center - Recommended
  2. (Radio Button): I want to create an IAM user. Rather I am getting the checkbox option: "Provide user access to the AWS Management Console - optional" After ticking the check box user is getting created but, instance creation is failing with errors "You are not authorized to perform this operation. User: arn:aws:iam::177390279177:user/Test is not authorized to perform: ec2:DescribeInstances because no identity-based policy allows the ec2:DescribeInstances action" My root user and user are in the same region.

Previously I used to get the option and could create user and instances based on the permission assigned by the root user. I searched on internet some solutions advice clearing the browser cache and history but it didn't help. I guess AWS has changed this interface now

Please help here, thanks.

asked a year ago343 views

5 Answers
1

Hello.

It's likely that the IAM user you're using doesn't have the necessary IAM policies configured.
It looks like you are using an IAM user called "User1-Dev", so try setting the "AdministratorAccess" policy for this user.
Setting this policy allows you to do almost anything.
https://docs.aws.amazon.com/aws-managed-policy/latest/reference/AdministratorAccess.html

Once you have confirmed that you can perform the operation, try narrowing down the policies you need.

EXPERT

answered a year ago

0

It appears you're experiencing changes in the IAM user creation interface. AWS has indeed updated the IAM console interface, which explains why you're seeing a checkbox for "Provide user access to the AWS Management Console - optional" instead of the radio button options you were familiar with.

Regarding the authorization error, this is a permissions issue. When you create a new IAM user, they don't automatically have permissions to perform actions like creating EC2 instances or using the EC2:DescribeInstances action. You need to explicitly attach the appropriate permissions policies to your new user.

Here's how to resolve this:

  1. After creating the IAM user, you need to add permissions policies to the user. Without these policies, the user won't be able to perform any actions in AWS.

  2. For EC2 instance management, you should attach a policy that includes EC2 permissions (such as AmazonEC2FullAccess or a custom policy with specific EC2 permissions).

  3. As a best practice, follow the principle of least privilege by granting only the permissions the user needs.

  4. Remember that when signing in as an IAM user, you'll need three pieces of information: your AWS account ID or alias, the IAM user name, and the password.

Also, AWS recommends using IAM Identity Center (formerly AWS Single Sign-On) for user management rather than creating IAM users directly, which might explain the interface changes you're seeing as AWS pushes users toward this more secure approach.
Sources
IAM User Creation | AWS re:Post
Troubleshoot IAM - AWS Identity and Access Management
New IAM user for AWS console | AWS re:Post

answered a year ago

  • Can you be very specific which policies to add I want given the EC2ReadOnlyAcess while creating the user and before creating user I can see an additional policy attached to the user IAMUserChangePassword. That's all the user is unable to see root created instance and some times while logging in I can see the message "you are not authorized to perform the action". However if I provide AdministratorAccess the user can perform all action, but that's not what i intended for the user.

  • Can I upload a screenshot here?

0

Regarding the authorization error you're seeing when trying to view EC2 instances - this is happening because the new user doesn't have the necessary permissions yet. The IAMUserChangePassword policy you mentioned only allows password changes, not EC2 access.

Here's how to fix this:

Adding the EC2 Read-Only Policy:

  1. Sign in to the AWS Console as your root user
  2. Go to IAM → Users
  3. Click on your "Test" user
  4. Go to the Permissions tab
  5. Click "Add permissions"
  6. Select "Attach policies directly"
  7. Search for AmazonEC2ReadOnlyAccess and check the box next to it
  8. Click "Next" and then "Add permissions"

This policy includes the ec2:DescribeInstances permission that's currently missing, which is why you're seeing that error message.

Once you add this policy, your user should be able to view all EC2 instances (including the ones created by root) without any issues. The permissions apply immediately, though sometimes it takes 30-60 seconds to fully propagate.

The reason AdministratorAccess works is because it grants full permissions to everything, but that's definitely not what you want for security reasons. The AmazonEC2ReadOnlyAccess policy will give your user exactly what they need - the ability to view instances without being able to create, modify, or delete them.

Let me know if you run into any issues after adding the policy, or if you need help with anything else.

AWS
EXPERT

answered a year ago

  • Thanks Gunasekaran for the response I followed the same steps earlier as well and it failed, I deleted all the Instances/Users and retired now

    1. Retired with adding the policies to the user in IAM i.e. AmazonEC2ReadOnlyAccess and default policy which is applicable to the user while creation IAMUserChangePassword. Now it worked as expected and user could not launch a VM
    2. However when I added AmazonEC2FullAccess to the same user, VM launch failed with the error "Access denied by EC2 instance Connect. Either your AWS credentials are not valid or you do not have access to the instance". screenhot "User_failed_launch_afte_adding_full_access.png"
    3. Why in the application section of the user dashboard I am seeing the error screen shot provided a. "issue_w_fix_provided.png" and "EC2 Free Tier" section screenshot "User_Dashboard_msg.png"
    4. Also when I check with root user for the failure of "User_Dashboard_msg.png" even though I only Launched in Mumbai Region 2 VM's the Networking shows 349 and Security 34 ( I understood this based on 18 regions I have access, and based on each region they sum up to) may be because of this i am getting "User_Dashboard_msg.png" error in step 3? screenshot "Global_DashBoard.png"

    Thanks for the help and quick response.

0

Enter image description here

Enter image description here

Image 1 is provided in response of the above issue image 2 user permissions

answered a year ago

0

Comment related screen shots Enter image description here Enter image description here Enter image description here Enter image description here

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.