Reputation: 361
I have created a user in IAM with admin access but still getting access denied while AWS cli setup.
EACCES: permission denied, open '/home/asit/.aws/credentials'
Upvotes: 1
Views: 2544
Reputation: 9605
This might be due to the wrong permissions on the /home/asit/.aws/credentials
.
You can fix the permissions by running the below command.
sudo chown -R $USER:$USER /home/asit/.aws/
I am assuming you have followed this doc Configuration and credential file settings for configuring the CLI.
Upvotes: 4