How to configure credentials for IAM user in CLI

0 votes
Hi Guys,

I have created one IAM user. I want to use this IAM user to do my work from AWS CLI. But every time it uses the root account. How can I configure credentials for IAM users in CLI?
Jun 10, 2020 in AWS by akhtar
• 38,260 points
732 views

1 answer to this question.

0 votes

Hi@akhtar,

To pass credentials for your IAM user in AWS CLI, you have to use the profile keyword as given below.

C:\Users\Nadeem Akhter>aws configure --profile nadimpro
AWS Access Key ID [None]:
AWS Secret Access Key [None]:
Default region name [None]:
Default output format [None]:

Hope this will help you.

answered Jun 10, 2020 by MD
• 95,460 points

Related Questions In AWS

0 votes
1 answer

How to configure IAM roles for ECS tasks?

You first need to create an IAM ...READ MORE

answered Nov 5, 2018 in AWS by anonymous
2,215 views
+1 vote
1 answer

How to create an IAM user in AWS?

Hi@akhtar, To create new user in AWS, you ...READ MORE

answered Jun 1, 2020 in AWS by MD
• 95,460 points
1,394 views
0 votes
1 answer

How to change the password for your IAM user?

Hi@akhtar, You can change the password of the IAM ...READ MORE

answered Nov 3, 2020 in AWS by MD
• 95,460 points
1,085 views
0 votes
1 answer

How to create a password for an IAM user?

Hi@akhtar, You can create a password for the specified ...READ MORE

answered Nov 3, 2020 in AWS by MD
• 95,460 points
808 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

How to create an access key for an IAM user in AWS?

Hi@akhtar, You can create a new AWS secret ...READ MORE

answered Nov 3, 2020 in AWS by MD
• 95,460 points
653 views
0 votes
1 answer

How to update account credentials in aws cli?

Hi@akhtar, You can find one .aws folder in ...READ MORE

answered Apr 27, 2020 in AWS by MD
• 95,460 points
2,191 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP