How to update account credentials in aws cli

0 votes

Hi Guys,

I installed aws cli in my system and also configured account credentials in my system. But recently I change my account credentials. How can I update my new credentials in my local system? 

Apr 27, 2020 in AWS by akhtar
• 38,180 points
219 views

1 answer to this question.

0 votes

Hi@akhtar,

You can find one .aws folder in your system. This folder contains two file one is configuration file and another one is credential file. Open your credential file and update your new credentials.

$ vim .aws/credentials

Hope this will help.

answered Apr 27, 2020 by MD
• 95,140 points

Related Questions In AWS

+2 votes
1 answer
0 votes
1 answer

How to download the latest file in a S3 bucket using AWS CLI?

You can use the below command $ aws ...READ MORE

answered Sep 6, 2018 in AWS by Archana
• 4,150 points
11,815 views
0 votes
1 answer

AWS S3 uploading hidden files by default

versioning is enabled in your bucket. docs.aws.amazon.com/AmazonS3/latest/user-guide/….... the ...READ MORE

answered Oct 4, 2018 in AWS by Priyaj
• 58,100 points
2,010 views
0 votes
1 answer

How to decrypt the encrypted S3 file using aws-encryption-cli --decrypt

Use command : aws s3 presign s3://mybucket/abc_count.png you get ...READ MORE

answered Oct 22, 2018 in AWS by Priyaj
• 58,100 points
2,749 views
0 votes
2 answers
0 votes
1 answer
0 votes
1 answer

How to edit files in the AWS S3 bucket from CLI?

Hi@akhtar, According to my knowledge,  you can't edit ...READ MORE

answered Jun 8, 2020 in AWS by MD
• 95,140 points
1,663 views
0 votes
1 answer

How to configure credentials for IAM user in CLI?

Hi@akhtar, To pass credentials for your IAM user ...READ MORE

answered Jun 10, 2020 in AWS by MD
• 95,140 points
142 views