An error occurred (AccessDenied) when running aws --version command.

0 votes

Hi Guys,

I am getting access denied error, whenever I tried to run any aws cli command in my system. How can I solve this error?

Apr 27 in AWS by akhtar
• 11,270 points
28 views

1 answer to this question.

0 votes

Hi@akhtar,

You may got this error if the AWS CLI program file doesn't have "run" permission. On Linux or macOS, ensure that

the aws program has run permissions for the calling user. Typically, the permissions are set to 755.

To add run permission for your user, use the below given command.

 $ chmod +x /root/.local/bin/aws 

Hope this will help.

answered Apr 27 by MD
• 24,500 points

Related Questions In AWS

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
• 57,530 points
774 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
• 57,530 points
1,554 views
0 votes
2 answers