I recently downloaded AWS CLI for Windows. I was able to use it just fine the first day however it is now giving me a Permission Denied error on Git Bash whenever I try to do anything with aws.
$ aws
bash: /c/Program Files/Amazon/AWSCLIV2/aws: Permission denied
I've tried uninstalling, reinstalling, restarting my computer, and still nothing. I've even tried messing with the permissions on the folder but it still says I dont even have permission to do that. Any help?
In my case, this was caused by an AV Agent, specifically Carbon Black, identifying the CLI executable as a threat. Obviously this is a false positive and an issue with Carbon Black.
To resolve the problem I disabled "Protection" temporarily, did what I needed to do, and then uninstalled the CLI until I can get a hold of the responsible party within our organization. I'm also planning to submit this to CB.
Here's how to disable protection:
You should now be able to install the AWS CLI, or use it if you had already installed it.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.